Keyboard macros: Difference between revisions

m
→‎{{header|AutoHotkey}}: Minor indentation and casing edit
m (→‎{{header|AutoHotkey}}: Minor indentation and casing edit)
Line 5:
<lang AutoHotkey>
loopLoop, 200 ;; loop 200 times while not paused
{
TrayTip, counting, %A_Index% press alt-p to pause
sleep Sleep, 1000
}
 
!p:: ;; links alt-p key combination to the method pauseme() (system wide)
pauseMe()
Return
return
 
!r:: ;; links alt-r key combination to the method resume() (system wide)
resume()
Return
return
 
pauseMe()
{
Msgbox MsgBox, pausing`, press alt-r to resume
Pause
pause
}
 
resume()
{
TrayTip, resume, resuming, 2
pause Pause, off
}
</lang>