7,763
社区成员
发帖
与我相关
我的任务
分享
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Sub Form_Load()
Timer1.Interval = 1
End Sub
Private Sub Timer1_Timer()
Dim Res As Long
Res = GetAsyncKeyState(1)
If Res = -32767 Then
Debug.Print "鼠标左键被按下!"
End If
End Sub