Xerox -05W Printer User Manual


 
12-49
Creating A Script File
KINTERCEPT
Syntax: KINTERCEPT <boolean>
When enabled, this command will cause all keystrokes entered by the terminal
operator to be intercepted and stored in a queue so that the script program can take
action on them using the kraw and kact commands. You should disable this function
before the script program is exited.
KPRESS
Syntax: KPRESS <key identifier>
This command will cause the script program to perform the function of the key
identified by its reference number or virtual key name. Refer to the Key Reference
Numbers appendix for a list of valid key reference numbers, and the Virtual Key
Names appendix for a list of key names that can be used.
KRAW
Syntax: KRAW <string>
When keyboard intercept is enabled by kintercept, the kraw command is used to
retrieve each keystroke in turn from the input queue so that it can either be processed,
accepted or rejected by the script program. A string can be intercepted by placing this
command in a loop.
Keystrokes are represented as virtual key names in the same format as a key macro.
For example:
"VK__F1" the F1 key has been pressed.
"A VK__F1" the F1 key has been pressed with the Alt key held down.
If a key has not been pressed then kraw will return a null string.
KRCV
Syntax: KRCV IGNORE
KRCV PROCESS
KRCV HOLD
This command specifies what happens to characters received from the keyboard
while the script program is running.
When set to ignore, characters will be thrown away. When set to process, characters
will be processed as normal. When set to hold, characters will be held but not
actioned until a krcv process command is received, except for the kget and kbd
commands, which will be processed. The ignore, process and hold settings can be
abbreviated to I, P, and H, respectively.