t1 = {@INPUTTCL
sh_set onTransferDone "update";
after idle "sh_screen key a s a p ";
return "";
}{@NOSPACE}
asap = as soon as possible
If you type "t1
tp=the patient is a g
g1=male.
g2=female.
tp<SPACE><BACKSPACE>1<SPACE>
you will end up with:the patient is a male
Note: This works only with simple long forms and the remembered word is restored only after you hit BACKSPACE after the expansion. Entries with @Tags may not be tracked correctly; if you plan on using this feature a lot, we recommend you turn on the Suggestion Window to view how Shorthand tracks your keyboard input.
{@key numlock}{@key shift+numpad7}{@key numlock}
sh_window show 1;
sh_screen key ins;
return;
Note: Shorthand is a single threaded application which means
Shorthand cannot evaluate a Tcl command while a dialog window
is visible. In the above example, sh_screen key ins
simulates an Ins key which will open the Dictionary Add window and
pause the Tcl script until you close the Dictionary Add window.
sh_screen key "h" "e" "l" "l" "o"
will simulate "hello". Note that the keycodes must be separated by spaces.
sh_screen iskeydown $keycode
sh_screen enumwindows $proc $clientData
sh_input spellcheck $prompt $text
sh_window main_handle
sh_window active_handle
sh_window activate