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. Refer to
Error codes for a complete listing of error code descriptions.
Remarks
The
EMSendKey function affects the host screen as if the user were typing on the keyboard.
Refer to the following tables for a list of host function keys and their corresponding codes. 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 1
This example utilizes standard mnemonic syntax. For example, @T for TAB and @E for ENTER.
EMSendKey "John@TSmith@E"
EMWaitReady 10, 1
Example 2
This example utilizes friendly syntax. For example, <Tab> for TAB and <Enter> for Enter.
EMSendKey "John<Tab>Smith<Enter>"
EMWaitReady 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.