[AHK] Automatic Spotter
Credit: JACKPOST
Code:
SendMode Input
#SingleInstance Force
#NoEnv
Process, Priority,, High ;Since BF1 runs at such high CPU usage rates this allows the script to function better.
#IfWinActive,Battlefield™ 1 ;Only works if the bf1 main window is open.
{
~*RButton::
Send, {q down}
sleep 10
Send, {q up}
Loop
{
GetKeyState, KeyState, RButton, P
if KeyState = U
{
Send, {q up} ;shouldn't be nessecery but is just a fail safe so it doesn't get stuck down
break
}
Sleep 300 ;The main time delay between spot attempts.
Send, {q down}
Sleep 10
Send, {q up}
}
Return
}

