A Programming Keys and Buttons

This appendix describes how to program a key or button to generate specific key functions and characters when pressed.

Introduction

TeemTalk provides various ways of programming keys and buttons to perform functions that you have defined. The following sections describe how to include key functions and special characters in a user definition.

The function of keys and buttons can be redefined using settings in the following dialogs displayed from the Tools menu:

Key Macro Settings described in the section Defining Key Functions on page 34. Mouse Action Settings described in the section Defining Mouse Functions on page 42. Soft Button Settings described in the section Defining Soft Button Functions on page 49.

Including Key Function Combinations & Sequences

You can program a key or button to perform the function of a combination or sequence of keys. For example, you can cause a key or button to perform the same function as pressing the keys Alt + F4 together, or pressing the keys F2 then F3 then F4.

Virtual Key Names

Key functions are identified by virtual key names as listed in the Key Macro Settings dialog in the Emulation Keys and Virtual Keys list boxes. The virtual key name has to be enclosed by the < and

>characters in the user definition box. You may omit the VK_ and VT_ (etc.) parts of the virtual key name.

For example, the virtual key name for the Return key function when running a DEC VT terminal emulation is VT_RETURN. You would enter this in the user definition box as follows:

<RETURN>

Key Combinations

To program a key or button so that it performs the same function as pressing two or more other keys together, type the < character, followed by the virtual key names linked together with + (plus sign) characters, and end with the > character

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

<ALT+F4>

Introduction 279