Script for semiauto sniper rifles (Buck and Twitch), fast shooting when left mouse button is held, works well only with my resolution, fov, and mouse sens. Idea is clear and you can change it for yourself
Code:
#NoEnv
SendMode Input
~CapsLock::Suspend
~End::ExitApp
~*LButton::
Loop
{
GetKeyState, state, Lbutton, P
if state=u
break
MouseClick, left, , , 1, 99, D
Sleep 32
GetKeyState, state, Lbutton, P
if state=u
break
MouseClick, left, , , 1, 99, U
Sleep 35
mouseXY(0,6)
GetKeyState, state, Lbutton, P
if state=u
break
}
return
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}