Keyboard macros: Difference between revisions

From Rosetta Code
Content added Content deleted
(keyboard macros in autohotkey)
 
Line 28: Line 28:
}
}
</lang>
</lang>
See [http://www.autohotkey.com/forum/topic44290.html&highlight=vim ahk-viper-mode] for a context sensitive vi key bindings example.

Revision as of 20:23, 27 May 2009

Task
Keyboard macros
You are encouraged to solve this task according to the task description, using any language you may know.

Link user defined methods to user defined keys.

AutoHotkey

<lang AutoHotkey> loop, 200 { TrayTip, counting, %A_Index% press alt-p to pause sleep, 1000 }

!p:: pauseMe() return

!r:: resume() return

pauseMe() { Msgbox, pausing`, press alt-r to resume pause } resume() { TrayTip, resume, resuming, 2 pause, off } </lang> See ahk-viper-mode for a context sensitive vi key bindings example.