Download Pulsonix Spice Script Users Guide

Transcript
Command Reference 141
DefKey
DefKey Key_Label Command_string [option_flag]
DefKey is used to define custom key strokes.
Key_Label
:GRAPH
Code to signify key to define. See table below for list of possible
labels. All labels may be suffixed with one of the following:
Key defined only when a graph window is currently
active
Key defined only when the command shell is
currently active.
:SHELL
If no suffix is provided the key definition will be active in all windows.
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:
0.
Default. Command is echoed and executed. Any text already in command line is
overwritten.
1.
Command is placed in command line but is not executed. Any text already in
command line is overwritten.
2.
Command is appended to existing text in command line then executed.
3.
Command is appended to existing text in command line but is not executed.
4.
Same as 0.
5.
Immediate mode. Command is executed immediately even if another operation - such
as a simulation run - is currently in progress. For other options the command is not executed
until the current operation is completed. Only a few commands can be assigned with this
option. These are
DefItem
DefKey
Echo
Let
Pause
Quit
ScriptAbort
ScriptPause
ScriptResume
Shell
Note, the Let command 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.
Valid key labels:
Function keys :
F1
F2
F3
F4
F5
F6
F7