Xerox -05W Printer User Manual


 
12-7
Creating A Script File
Similar definitions can also be applied to soft buttons to allow frequently used
sequences to be accessible with one mouse click.
Key combinations are also possible to define by including the complete combination
within angle brackets (< and >). For example, to program the A key so that it
performs the same function as ALT + F4 :-
pset macro VK_A "<ALT+VT__F4>"
Launching An Application
& Changing The Window Focus
There are 2 additional ‘special’ sequences which can be programmed into soft
buttons or keyboard macros:
To launch an application, include the 'command line' within round brackets:
PSET MACRO VK_F1 "(c:\TeemTalk\tt07w.exe)"
To change the window focus (window class name), include it within quotes within
angle brackets:
PSET MACRO VK_F2 "<_034tt07w_034>"
Note: The decimal value of the double quote character is used
within the string to prevent the script program assuming
that it terminates the string.
Initiating A DDE Conversation
The following script file example will attempt to initiate a DDE conversation with the
application Excel and display various informative messages.
var $dummy
var %channel1
var %channel2
var $RequestedSelectInfo
var %int=0
var $RequestedInformation
var $ddelist
var $title "TT07W Script to Excel DDE interface_n_r"
pset curr dht, bg blue, fg yellow
wrt title
pset curr dhb
wrt title
pset curr clr
lab5:
DDE initiate "Excel", "system", channel1, ddelist