TEOptions Object > Methods > UseKeyEvent Method
UseKeyEvent Method
Description
Instructs UFT to perform SendKey commands using keyboard events rather then the corresponding HLLAPI function.
Syntax
Visual Basic
Public Sub UseKeyEvent( _
   ByVal Mnemonic As String, _
   ByVal Value As String _
) 
Parameters
Mnemonic

The command to perform using keyboard events.

Possible value:

@R--RESET command.

Value

The keyboard combination of the virtual key code. Specify the decimal value of each key in the code, separated by semicolons (;).

Remarks

If you do not use this option to specify key codes, UFT performs SendKey commands using the corresponding HLLAPI function.

Note: Some emulators, for example, Attachmate Extra!, recognize the RESET command while the emulator is busy only when it is sent using keyboard events.

Example
See Also