Key Sequences

To program a key or button so that it performs the same function as pressing a sequence of keys one after the other, enter each virtual key name in the order required, starting and ending each virtual key name with the < and > characters, respectively. Each enclosed virtual key name must immediately follow the previous enclosed virtual key name with no spaces.

For example, to program a key or button so that when it is pressed it performs the same function as pressing the keys F2 then F3 then F4, enter the following characters in the user definition box:

<F2><F3><F4>

Including Special Characters

Control Characters

There are various ways in which you can specify a particular character in a user definition. For example, the ESC character can be specified using any one of the following five entries:

_027 Decimal value (underscore character followed by a 3-digit number). \033 Octal value (backslash character followed by a 3-digit number). \u001B Unicode value (backslash and u characters then unicode value). ^[ Control key value (^ represents the control key on the keyboard).

\e Additional value for ESC.

Backslash Values

The following backslash values can be used: \u Unicode introducer

\n Line feed

\r Carriage return \e Escape

Note that as the \ and ^ characters are used as value introducers, to enter these as character values you need to precede them with a backslash character, i.e. enter \ as \\ and ^ as \^.

The Euro Character

The Euro character can be specified by entering the unicode value \u20ac.

Running a Script File

You can define a macro to run a script file 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 run the script file myscript.scr and assign the values value1 and value2 to two variables, you would enter the following in the macro definition:

<'myscript.scr(value1,value2)'>

280 Appendix A Programming Keys and Buttons