AHK enable/disable Topic is solved

Ask gaming related questions (AHK v1.1 and older)
Daniel152312

AHK enable/disable  Topic is solved

16 Dec 2017, 16:39

!LButton::
loop, 10
{
send {Lbutton}
}
return



So I want when ever I press "P" it will enable autoshoting so when I hold my button left mouse button it shots
and when I disable it by pressing p again if I hold my button again it wont work.
Rohwedder
Posts: 7625
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: AHK enable/disable

18 Dec 2017, 05:53

Hallo,
autoshoting = Alt + left mouse button:

Code: Select all

p::Enable:=!Enable
#If Enable
!LButton::
loop, 10
	send {Lbutton}
return
#If
autoshoting = only left mouse button:

Code: Select all

p::Enable:=!Enable
#If Enable
$LButton::
loop, 10
	send {Lbutton}
return
#If

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 94 guests