#NoEnv
Suspend, On
SendMode Input
_auto := true
~LButton::autofire()
~Numlock::_auto := ! _auto
~MButton::
Suspend
ToolTip,% a_isSuspended?"Normal OFF":"Normal ON", 0, 900
return
autofire()
{
global _auto
if _auto
{
Loop
{
if GetKeyState("LButton", "P")
{
SendInput {LButton DownTemp}
Sleep 1
mouseXY(0, 4)
Sleep 1
SendInput {LButton Up}
Sleep 25
}
else
break
} ;; loop
} ;; if
} ;; autofire()
mouseXY(x,y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}