How To: Long Left Click?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Anthrazite
Posts: 1
Joined: 14 Dec 2019, 16:31

How To: Long Left Click?

14 Dec 2019, 17:02

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
ceyhunveysel
Posts: 52
Joined: 02 Aug 2019, 15:39

Re: How To: Long Left Click?

14 Dec 2019, 17:10

Sleep is meant for milliseconds.
signature C:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mebelantikjaya and 317 guests