Next: , Previous: , Up: Configuration File Keywords   [Index]


6.2.18 Function

Syntax:

Function number keystrokes

Example:

Function 11 \0x17D:\\text\\*.*^M

A function key macro is a predefined keystroke sequence that is assigned on a function key. If you press this function key, MsgEd TE will do exactly what it would have done if you have typed in all the keystrokes of this macro manually.

The following function key numbers (to be used as the number parameter) are available:

0

Execute this macro at program startup.

1 .. 10

F1 .. F10

11 .. 20

Shift-F1 .. Shift-F10

21 .. 30

Ctrl-F1 .. Ctrl-F10

31 .. 40

Alt-F1 .. Alt-F10

Note that function key numbers 11 through 40 might not work on Unix.

When using key scancodes in a macro, you must escape them with a backslash character (‘\’). If you wish to have a literal backspace character appear in the macro string (e.g. if it’s needed as part of a path to a file), use two backslash characters, like in the example above.

The example from above will assign Shift-F1 to display a pick list of the files in the D:\TEXT directory. After the list is displayed, you may select a file to import into a message while in Msged’s internal editor. Note that control characters in a macro such as ^M (Enter) must be written in UPPER case.