DefKey is used to define custom key strokes.
DefKey <key-label> [<command-string> [<options>]]
key-label |
Code to signify key to define. See table below for list of
possible labels. All labels may be suffixed with one of the following:
Shifted keys are keys that have shift, control or alt also pressed at the same time. Any of the above keys can be prefixed with any combination of 'S' for shift, 'C' for control or 'A' for alt. Note that in windows, the right hand ALT key performs the same action as CONTROL-ALT. |
||||||||||||||||||||||||||||||||||||||||||||||||||
command-string |
A command line command or commands to be executed when the specified key is pressed. Multiple commands must be separated by semi-colons (';'). Unless the command string has no spaces, it must wholly enclosed in double quotation marks ("). |
||||||||||||||||||||||||||||||||||||||||||||||||||
option-flag |
A number between 0 and 5 to specify the manner in which the
command is executed. These are as follows:
Note, the command Let can be used to set a global variable which can then be tested in running script. This is a convenient method of providing user control of script execution. |
Unshifted letter and number key definitions will not function when a text edit window such as the simulator command window (F11) is active. Space bar definitions must always be shifted. The same codes can be used for menu short cuts. See DefMenu . Key definition will be lost when SIMetrix exits. To make a key or menu definition permanent you can place the command to define it in the startup script. To do this, select command shell menu and add the line above.
DefKey CR "inst res" 4The built in definition for F12 to zoom out a schematic is
DefKey F12:SCHEM "zoom out" 4This definition only functions when a schematic is active. A similar definition for F12:GRAPH zooms out a graph when a graph window is active.
▲ Command Summary ▲ | ||
◄ DefineToolBar | DefMenu ▶ |