Inserts keystrokes into the typeahead buffer.

Syntax

KEYBOARD <expC> [CLEAR]

<expC>

A character string, which may include mnemonic strings representing key labels.

CLEAR

Empties the typeahead buffer before inserting <expC>.

Description

Use KEYBOARD to simulate keystrokes by placing or "stuffing" them in the typeahead buffer.

KEYBOARD can place any number of characters in the typeahead buffer, up to the limit specified by SET TYPEAHEAD; subsequent characters are ignored. If SET TYPEAHEAD is 0, you may KEYBOARD one character.

Keystrokes simulated with KEYBOARD are treated like normal keystrokes, going into the control that currently has focus. Some controls support a keyboard( ) method that enables you to send keystrokes to that specific control.

In addition to the simple alphanumeric keys on the keyboard, you may also use mnemonic strings to simulate must function keys. For a list of mnemonic strings, see the keyboard( ) method.