I have tried to get a working Battlefield 1 rapidfire script but nothing seems to work so far,
Code: Select all
~LAlt & LButton::
While GetKeyState("LButton","P"){
Click
Sleep 50 ; milliseconds
}
return
Code: Select all
SetMouseDelay, 20 ; Set our Mouse Click delay to 20ms
#if WinActive("ahk_exe bf1.exe") ; Any Hotkey Declared below will only be Active if Battlefield 1 is Active
$*~LButton:: ; Hotkey Left Mouse Button, * means trigger always (even on Key Combos), ~ Passes our initial Mouse Click through
while GetKeyState("LButton", "P"){ ; Loop while we are holding Left Mouse Button down
If (A_TimeSinceThisHotkey > 100){ ; If you have been holding the button longer than 100ms
mouseClick ; Send a left mouse click!
}
Sleep 50 ; Adjust this as needed. 1000 divided by # of rounds per second.
}
return