SendKey

Sends a sequence of keys to the display session.

Parameters:

KeyStr  -  String of Key Codes.  See the Remarks section for a complete listing of valid key codes and descriptions.

Returns:

0 for success; or a non-zero error code.  See Error Codes for a complete listing of error code descriptions.

Remarks:

The SendKey function affects the host screen as if the user were typing on the keyboard.

Please refer to the following tables for a list of host function keys and their corresponding codes.  Please note that if a character is used in the code, then the case of the character is important.

NOTE  If you want to use the “at” sign (@) in the Data String, you must use the two-byte code “@@”.

Example:

Set Host = CreateObject( "BZWhll.WhllObj" )

 

Host.connect "A"

Host.SendKey "John@TSmith@E"

Host.WaitReady 10, 1