SENDKEY                                                             Statement

SENDKEY keyFlags, keyChar

Description

SENDKEY is used to perform keyboard input programmatically.  The required component, keyFlags, is a combination of modifier keys (shift, ctrl or alt) to accompany the key press. The required component, keyChar, is the numeric value of the key to be pressed.

Example

REM SENDKEY Example

'SENDKEY performs keyboard input

TextBox1.SetFocus

SENDKEY 0, 97

SENDKEY 0, 98

SENDKEY 0, 99

'Enters abc into the text box