I need help improving an AHK.
Posted: 11 Dec 2019, 09:34
I have a no backsliding script, but I would like it to only turn the mouse down when I'm shooting, and in my case regardless of whether I'm in the settings menu or out of the game the script is active.
Can anybody help me?
[Mod edit: [code][/code] tags added]
Can anybody help me?
Code: Select all
#NoEnv
SendMode Input
~G::Suspend
~2::Suspend
~1::Suspend
~LButton::
Loop
{
GetKeyState, state, Lbutton, P
if state=u
break
mouseXY(0,7)
sleep 1
mouseXY(0,4)
sleep 1
mouseXY(0,-1)
sleep 5
mouseXY(-1,0) ;
sleep 5
mouseXY(1,0) ;
sleep 5
}
return
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}