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.
IBM 3270 / 5250 Send Key Table: click here
BlueZone VT Send Key Table: click here
NOTE If
you want to use the at sign (@) in the Data String, you must use the
two-byte code @@.
Example 1:
Example 1 utilizes standard Mnemonic Syntax. For example, @T for TAB and @E for ENTER.
Set Host = CreateObject( "BZWhll.WhllObj" )
Host.Connect "A"
Host.SendKey "John@TSmith@E"
Host.WaitReady 10, 1
Example 2:
Example 2 utilizes Friendly Syntax. For example, <Tab> for TAB and <Enter> for ENTER.
Set Host = CreateObject( "BZWhll.WhllObj" )
Host.Connect "A"
Host.SendKey "John<Tab>Smith<Enter>"
Host.WaitReady 10, 1
NOTE If
you are converting macros or scripts to BlueZone, and your existing macros
or scripts contain the Friendly Syntax, there is no
need to convert them to Mnemonic Syntax.