Code: Select all
;Script made by Ninkjeboi
SetBatchLines -1
;Mouse 4 to strafe
#NoEnv
SendMode, Input
CoordMode, Mouse, Screen
mouseXY(x, y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}
strafe(left)
{
moveCount := 20
sleepInterval := 1
relativeMove := 6
if (left)
{
key := "d"
move := relativeMove
} else
{
key := "a"
move := -relativeMove
}
send {%key% down}
DllCall("Sleep", "UInt", 20)
Loop, %moveCount%
{
mouseXY(move, -(move/4))
DllCall("Sleep", "UInt", sleepInterval)
}
send {%key% up}
}
$xbutton1::
while getkeystate("xbutton1","P")
{
strafe(true)
strafe(false)
}
return
Things I tried: Deleting then reinstalling csgo and ahk, turning off Kaspersky, deleting Kaspersky, turning off Windows Defender, setting ahk to high priority.
I also record it https://www.youtube.com/watch?v=H3dOUH6vjyE
I'll be thankful if you guys can help.