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.
Code: Select all
#MaxThreadsPerHotkey 2
F8::
if (Toggle := !Toggle) {
/::suspend
LButton::
Loop
{
SetMouseDelay 20
Click
If (GetKeyState("LButton","P")=0)
Break
}
return
}