Keyboard macros: Difference between revisions

m
Clean up
m (Omit Modula-3)
m (Clean up)
Line 1:
{{task|GUI}}{{omit from|Modula-3}}Show how to link user defined methods to user defined keys. An example of this is the facility provided by emacs for [http://www.gnu.org/software/emacs/manual/html_node/emacs/Key-Bindings.html key bindings]. These key bindings may be application-specific or system-wide; state which you have done.
__TOC__
<br clear=all>
=={{header|AutoHotkey}}==
<lang AutoHotkey>Loop, 200 ; loop 200 times while not paused
<lang AutoHotkey>
Loop, 200 ; loop 200 times while not paused
{
TrayTip, counting, %A_Index% press alt-p to pause
Line 29 ⟶ 25:
TrayTip, resume, resuming, 2
Pause, off
}</lang>
}
</lang>
See [http://www.autohotkey.com/forum/topic44290.html&highlight=vim ahk-viper-mode] for a context sensitive vi key bindings example.
 
=={{header|Tcl}}==
{{libheader|Tk}}<br>
 
All Tk bindings are bound to a context that is no wider than a particular application and is frequently smaller (e.g., a single dialog box or an individual widget).
<lang tcl>package require Tk
Line 70 ⟶ 66:
 
=={{header|Vedit macro language}}==
<lang vedit>// Configure a key to access menu item.
 
<lang vedit>
// Configure a key to access menu item.
// The menu item may then contain the commands directly, or it may call a macro from disk.
// This has the advantage that the key binding is shown in the menu.
Line 90 ⟶ 84:
 
// Remove a key assignment. If INSERT option was used when the key was assigned, the old assignment will come in effect again.
Key_Delete("Ctrl-Shft-N")</lang>
</lang>
 
{{omit from|C++}}
Anonymous user