I would like for the macro to work when holding shift and not holding shift. After searching for a solution, it appears that shift acts as numlock, how do I get past this issue?
Code: Select all
#NoEnv
SendMode Input
_auto := true
~LButton::autofire()
~Numlock::_auto := ! _auto
~Up::Suspend
F1::ExitApp
autofire()
{
global _auto
if _auto
{
Loop
{
if GetKeyState("LButton", "P")
{
Sleep 1
mouseXY(0, 7)
Sleep 1
Sleep 25
}
else
break
} ;; loop
} ;; if
} ;; autofire()
mouseXY(x,y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}
Any help is greatly appreciated! Thank you.