When I double click it suspend the script.. how to make it when I double click again to un-suspend/start the script?
Code: Select all
#NoEnv
LButton::
if (A_TickCount - LButton_Tick <= 330) AND (LButton_Tick >= 1)
{
Suspend
}
else
{
Send {LButton down}
if (GetKeyState("LButton" , "P"))
Send {w down}
}
SetTimer, ClickBackUp, -1
LButton_Tick := A_TickCount
ClickBackUp:
if !(GetKeyState("LButton" , "P"))
{
Send {w up}
Send {LButton up}
}
else
SetTimer, ClickBackUp, -1
return
o::ExitApp