Keyboard macros: Difference between revisions

documented ahk example
(→‎{{header|Tcl}}: Another interpretation of "macro")
(documented ahk example)
Line 1:
{{task|GUI}}Link user defined methods to user defined keys.<br clear=all>
 
 
<br clear=all>
=={{header|AutoHotkey}}==
<lang AutoHotkey>
loop, 200 ;; loop 200 times while not paused
loop, 200
{
TrayTip, counting, %A_Index% press alt-p to pause
Line 9 ⟶ 12:
}
 
!p:: ;; links alt-p key combination to the method pauseme()
!p::
pauseMe()
return
 
!r:: ;; links alt-r key combination to the method resume()
!r::
resume()
return
Anonymous user