#NoEnv
SendMode Input
_auto := true
~LButton::autofire()
f1::Suspend
autofire()
{
global _auto
if _auto
{
Loop
{
if GetKeyState("LButton", "P")
{
Send {LButton DownTemp}
Sleep 1
mouseXY(0, 16)
Sleep 0
Send {LButton Up}
Sleep 0
}
else
break
} ;; loop
} ;; if
} ;; autofire()
mouseXY(x,y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}
SendMode Input
_auto := true
~LButton::autofire()
f1::Suspend
autofire()
{
global _auto
if _auto
{
Loop
{
if GetKeyState("LButton", "P")
{
Send {LButton DownTemp}
Sleep 1
mouseXY(0, 16)
Sleep 0
Send {LButton Up}
Sleep 0
}
else
break
} ;; loop
} ;; if
} ;; autofire()
mouseXY(x,y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}