|
|
Title | See if the left mouse button is up or down even outside this program |
Keywords | mouse, up, down |
Categories | Tips and Tricks, API |
|
|
Use the GetAsyncKeyState API function to see if the mouse button is up or down.
|
|
Private Sub Timer1_Timer()
If GetAsyncKeyState(1) = 0 Then
Label1.Caption = "mouse up"
Else
Label1.Caption = "mouse down"
End If
End Sub
|
|
|
|
|
|