#IfWinActive ahk_exe GTA5.exe
toggle := false
F6::
toggle := !toggle
targetX := 1200
targetY := 540
baseX := 750
baseY := 400
step := 80
while (toggle)
{
Send, i
Sleep, 600
Loop, 4
{
row := A_Index - 1
Loop, 6
{
col := A_Index - 1
x := baseX + col * step
y := baseY + row * step
MouseClickDrag, Left, x, y, targetX, targetY, 10
Sleep, 100
}
}
Send, i
Sleep, 900
}
return
F7::ExitApp
#IfWinActive