SendKeys Method

image\btn_example.gif

image\validfor_amv.gif

Applies To Objects

Screen

Description

Sends keystrokes to the host, including function keys. The keystrokes appear to the session as if they were manually entered by a user.

Syntax

object.SendKeys(String)

Element

Description

object

The Screen object.

String

String of keystrokes, up to 255. You can specify host function keys as well as alphanumeric keys.

Comments

To pause your application while the host processes the transmitted keystrokes, use a wait method, such as WaitForCursor.

Host function keys are specified with keywords, which are different for each type of host: 3270 keywords, 5250 keywords, or VT keywords.