I'm quite new to this AutoHotKey stuff and I'm trying to create a macro for a game.
So basically what I'm trying to do is:
By clicking the wheel button, I want it to press the button 2 on my keyboard and then right after that I want it to hold down the left click button on the mouse. But somehow it only does a short left click but not a long one?
This was my attempt:
mbutton::
Loop
{
if not GetKeyState("mbutton","p")
break
Send {2 down}
Sleep 0,003
Send {2 up}
Sleep 0,003
Send {Click, down}
Sleep 0,005
Send {Click, up}
Sleep 0,001
}
return
How To: Long Left Click?
-
- Posts: 1
- Joined: 14 Dec 2019, 16:31
-
- Posts: 52
- Joined: 02 Aug 2019, 15:39
Who is online
Users browsing this forum: mebelantikjaya and 317 guests