UseKeyEvent Method

Description

Instructs UFT One 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.

ValueThe 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 One performs SendKey commands using the corresponding HLLAPI function.

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

Example

See Also