Programming Guide



jm_keys

Simulates keyboard input

jm_keys input[ , input...]

input
A logical key or string to push onto the input queue. Arguments can be space or comma-delimited. Strings are enclosed by single or double quote characters. Logical keys are defined in smkeys.h. For a complete list of Panther logical keys, refer to Table 6-1 in Configuration Guide.

Because jm_keys passes its arguments to sm_ungetkey in reverse order, list them in their actual input sequence. You can specify up to 20 arguments.


Description

jm_keys queues the specified characters and function keys for input to the runtime system through successive calls to sm_ungetkey. The runtime system then be haves as though you had typed the keys or strings.

For a single call to jm_keys, list items in input order. Items in a single call are placed on the input queue in right to left order; the keyboard stack then processes items by last in, first out (LIFO) order.

For example, the following single call to jm_keys enters a string value into the current field, then tabs to the next field and enters a number value into it:

^jm_keys 'Steinway Brauhall', TAB, "104"

Successive calls to jm_keys place additional items on the input queue; the keyboard stack processes the last item first. For example, the following three calls:

jm_keys "One"
jm_keys "Two"
jm_keys "Three"

would output the following keyboard sequence:

ThreeTwoOne