Skip to content

Instantly share code, notes, and snippets.

@xcloudx01
Created September 20, 2022 05:54
Show Gist options
  • Save xcloudx01/948dcefbee061c65904206051b3e98eb to your computer and use it in GitHub Desktop.
Save xcloudx01/948dcefbee061c65904206051b3e98eb to your computer and use it in GitHub Desktop.
Autohotkey togglable rapidfire script.
Save either script as an .ahk file and run it (AutoHotKey must be installed)
Script 1:
Rapid-fires as long as left click is held down.
Usage: Run script, go into a game, press numpad+ to turn on the script -
hold down left click to rapidly fire. Press numpad+ again to turn it off.
;----Copy below this line------;
#Singleinstance, FORCE ;Without this you can accidentally run it twice.
Suspend, On ;Start in off state so you can't accidentally rapid-fire.
SetMouseDelay, 30 ;Miliseconds between each mouse click (Adjustable).
NumPadAdd::
Suspend, Toggle
return
LButton::
while GetKeyState("LButton", "P") {
Click, left
}
return
;----Copy above this line------;
;----------------------------------------------;
Script 2:
Slightly different script that rapid-fires as long as it's on, regardless of -
if you're clicking.
Usage: Run script, go into a game, press numpad+ to start rapid-firing,
press numpad+ again to turn it off. and numpad- to exit the script.
;----Copy below this line------;
#Singleinstance, FORCE ;Without this you can accidentally run it twice.
Suspend, On ;Start in off state so you can't accidentally rapid-fire.
SetMouseDelay, 30 ;Miliseconds between each mouse click (Adjustable).
loop
{
click
}
return
NumPadAdd::
Suspend,Toggle
return
NumPadMinus::
exitapp
return
;----Copy above this line------;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment