这段vb代码是按下win键,怎样改为其他键?
PrivateDeclareSubkeybd_eventLib"user32.dll"(ByValbVkAsByte,ByValbScanAsByte,ByValdwFl...
Private Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Sub Command1_Click()
keybd_event &H5B, 0, 0, 0 ' 按下
End Sub 展开
Private Sub Command1_Click()
keybd_event &H5B, 0, 0, 0 ' 按下
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询