Code: Select all
#Persistent
MsgBox Started
SetTimer, offAndOnAgain, 1000
return
offAndOnAgain:
Reload
return
Code: Select all
#Persistent
MsgBox Started
SetTimer, offAndOnAgain, 1000
return
offAndOnAgain:
Reload
return
Code: Select all
IfWinActive
Code: Select all
LButton::
SetTimer, ketkey, 50
Sleep, 1000
;~ KeyIsDown := GetKeyState("LButton", "P")
;~ Msgbox KeyIsDown = %KeyIsDown%
if (KeyIsDown = 0)
Click
while (KeyIsDown = 1)
{
Click, down
}
click, up
return
ketkey:
KeyIsDown := GetKeyState("LButton", "P")
return
esc::
ExitApp
Code: Select all
LButton::
SetTimer, ketkey, 50
Sleep, 1000
if (KeyIsDown = 0)
Click
else while (KeyIsDown = 1)
{
Click, down
}
else
{
click, up
}
return
ketkey:
KeyIsDown := GetKeyState("LButton", "P")
return
esc::
ExitApp
Code: Select all
Gui, Add, Button, x32 y10 w100 h30 vTurnthisOff, Button
Gui, Add, CheckBox, x42 y120 w100 h30 gdis , disables
; Generated using SmartGUI Creator for SciTE
Gui, Show, w479 h379, Untitled GUI
return
dis:
GuiControl, Disable, TurnthisOff,
return
GuiClose:
ExitApp
Code: Select all
~LButton::
BlockInput, MouseMove
sleep, 5000
BlockInput, MouseMoveOff
return
esc::
ExitApp