Steps for usage:
1-Go to your battlefield commands
2-Find where your wheel up/down is assigned (usually for changing weapons, unless you've changed it)
3-Delete wheel up/down from your commands
4-Find spot command
5-assign wheel up for spot
6-Launch the script
7-Press F1 to spam wheel up (it will spam spotting at all times)
8-Press F1 to toggle spam on/off, press f2 to suspend script when toggle is OFF (or it won't suspend, ahk is weird and i'm only starting to learn it) Rapid fire (when your left mouse button is held down) won't stop until you suspend the script.
Code:
#MaxThreadsPerHotkey 9999
$*f2::
suspend
return
$*F1::
Toggle := !Toggle
loop
{
If not Toggle
break
sendinput {Blind}{WheelUp}
Sleep, 100
}
~$*LButton::
While GetKeyState("LButton", "P"){
Click
Sleep 10 ; milliseconds
}
return
return
if you don't want rapid fire, delete this part
Code:
~$*LButton::
While GetKeyState("LButton", "P"){
Click
Sleep 10 ; milliseconds
}
return