Skip to content

Instantly share code, notes, and snippets.

@jfoster
Last active December 10, 2019 19:08
Show Gist options
  • Save jfoster/1d9df5e366f0495c4447c7ef4a8d1e51 to your computer and use it in GitHub Desktop.
Save jfoster/1d9df5e366f0495c4447c7ef4a8d1e51 to your computer and use it in GitHub Desktop.
Pause::Suspend
#IfWinActive ahk_exe bf1.exe || ahk_exe bf3.exe || ahk_exe bf4.exe
~*LButton::
SendInput {f down}
Sleep 100
SendInput {f up}
Return
Spnd = 0
`::
Suspend
If (Spnd = 0) {
Spnd = 1
Soundbeep, 1000, 50
Soundbeep, 750, 50
Soundbeep, 500, 50
} Else {
Spnd = 0
Soundbeep, 500, 50
Soundbeep, 750, 50
Soundbeep, 1000, 50
}
Return
LButton::
FileReadLine, minRPM, rapidfire.txt, 1
FileReadLine, maxRPM, rapidfire.txt, 2
if ErrorLevel {
Return
}
While GetKeyState("LButton", "P") {
SendInput, {LButton}
Random, rpm, minRPM, maxRPM
Sleep, 60000 / rpm
}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment