I am trying to improve the script but I still have a problem with the recoil of the weapon sideways. Can anyone help ?
I use 0.5 sens in the game.
Code: Select all
#NoEnv
SendMode Input
~F2::Suspend
~F3::ExitApp
LCtrl & ~LButton::
Loop
If GetKeyState("LButton", "LCtrl") {
Sleep, 5
moveAmount := (moveAmount = 2) ? 2 : 0
mouseXY(moveAmount,4.4)
}
else
break
Return
mouseXY(x,y)
{
DllCall("mouse_event",int,2,int,x,int,y,uint,0.5,uint,0.5)
}