7-48
Setup Menus
Entering Command Lines
You can enter a command line in a key definition by enclosing it within the ( and )
characters. This enables you to launch an application by just pressing a key. For
example, to program the F1 key so that another instance of TeemTalk-07W is run
when the key is pressed, you would enter the following in the relevant text box:
(C:\TEEMTALK\TT07W.EXE)
Changing The Window Focus
You can program a key to change the currently selected window or icon (that is the
window or icon to which keyboard and mouse commands will be directed) by
entering its window class name as a string enclosed by the < and > characters. For
example, to program the F4 key so that the TeemTalk-07W window is selected when
the key is pressed, you would enter the following in the relevant text box:
<"tt07w">
(tt07w is the window class name for TeemTalk-07W.)
Initiating A Script File
You can program a key to run a script file when pressed by enclosing the name of the
file and any arguments within the <' (left angle bracket and single quote) and '>
(single quote and right angle bracket) characters.
For example, to program a key so that it will run the script file myscript.scr and
assign the values value1 and value2 to two variables, you would enter the following:
<'myscript.scr(value1,value2)'>
Refer to the chapter entitled Creating A Script File for more information on initiating
script files.
Action Locally Or Transmit To Host
A key definition may be actioned locally or transmitted to the host when the key is
pressed. This is determined by the setting of the Local check box next to the
definition. When the check box is unchecked the definition will be transmitted to the
host.
Default Key Definitions
The default definition of a specific key may be reasserted by clicking the Default
button in the Define Key Macro dialog box for that key. The default definition of the
entire keyboard may be reasserted by clicking the Default button in the Keyboard
Macros dialog box.