[tut]hot click

Posts 1–3 of 3 · Page 1 of 1
[tut]hot click
do you wanne do if you click on your left mouse button

this how to do it :

set above your code

Code:
Public Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Long) As Integer
or if that not work

Code:
Public Declare Function GetAsyncKeyState Lib "User64" (ByVal vKey As Long) As Integer
then in a timer

Code:
            Dim click As Boolean
            click = GetAsyncKeyState(Keys.LButton)
            If click = True Then
                
            End If
example

Code:
            Dim click As Boolean
            click = GetAsyncKeyState(Keys.LButton)
            If click = True Then
                msgbox ("yeay you pressed on the mouse button")
            End If
thank me if i help you
oo Another hotkey tutorial, I will try this out, but also change the key...
And if this works I will thanks you
i was trying out some hotkeys and found Lbutton

i think it's pretty handy for some programs
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?