Rapid fire toggle script Topic is solved

Ask gaming related questions
Thelegend27

Rapid fire toggle script  Topic is solved

18 May 2018, 19:34

Hello,

I am relatively new to AHK and have almost no idea what I am doing, but I do love to play fps games and am looking for a script with f8 as the toggle key. I would like the script to be a rapid fire click, however only when I am holding the mouse (I do not want an autoclicker). I have done the tutorials and research of my own and came up with this script (see below). The rapid fire part of the script works, however I can't figure out how to toggle the rapid fire on and off using the f8 key. If anyone can help it would be greatly appreciated, thanks.

#MaxThreadsPerHotkey 2

F8::
if (Toggle := !Toggle) {
/::suspend
LButton::
Loop
{
SetMouseDelay 20
Click
If (GetKeyState("LButton","P")=0)
Break
}
return
}
Rohwedder
Posts: 1011
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Rapid fire toggle script

19 May 2018, 01:30

Hallo,
try:

Code: [Select all] [Download] GeSHi © Codebox Plus

HotKey, LButton, Off ;Initially, the Fast Fire part is deactivated
Return ;End of Auto-execute Section https://autohotkey.com/docs/Scripts.htm#auto
/::suspend
F8::Hotkey, LButton, % (Toggle := !Toggle) ? "On" : "Off"
LButton:: ;Fast Fire part
SetMouseDelay 20
While GetKeyState("LButton","P")
Click
Return

Return to “Gaming”

Who is online

Users browsing this forum: davorj, StundeR and 7 guests