#NoEnv
; #Warn
SendMode Input ; Idi
SetWorkingDir %A_ScriptDir%
#NoEnv
SendMode, Input
SetBatchLines -1
CoordMode, Mouse, Screen
mouseXY(x, y){
DllCall("mouse_event",uint,1,int,x,int,y*,uint,0,i nt,0)
}
strafe(left){
moveCount := 25
sleepInterval := 1
relativeMove := 15
if(left){
key := "a"
move := -relativeMove
} else {
key := "d"
move := relativeMove
}
Send, {Blind}{%key% down}
DllCall("Sleep", "UInt", 5)
Loop, %moveCount% {
mouseXY(move, 0)
DllCall("Sleep", "UInt", sleepInterval)
}
Send, {Blind}{%key% up}
}
*XButton2::
while getkeystate("XButton2","P") {
strafe(false)
strafe(true)
}
return

