Auto click when holding click but also hold another key

Ask gaming related questions (AHK v1.1 and older)
koshokuna
Posts: 1
Joined: 16 Apr 2021, 23:50

Auto click when holding click but also hold another key

16 Apr 2021, 23:56

Hello, I'm attempting to use this macro to spam left click while I'm holding left click. It is toggled on and off, but I can't seem to use any other inputs in between. For example, I can hold left click with the macro on and it goes as expected. However, if I hold another key like "LCTRL" then attempt to hold left click, it doesn't work. How do I let it work even if I'm holding another key beforehand?

Code: Select all

$LButton::
While, GetKeyState("LButton", "P")
	Click
Return
F2::Suspend
Rohwedder
Posts: 7630
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Auto click when holding click but also hold another key

17 Apr 2021, 02:09

Hallo,
try:

Code: Select all

*LButton::SetTimer, :X:☝, 50 ;every 50 ms
:X:☝::Click
*LButton Up::SetTimer, :X:☝, Off
F2::Suspend
With Unicode Character 'WHITE UP POINTING INDEX' (U+261D)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 111 guests