The method is applied to the following object:
The method has the following parameters:
The code of the key to release. For a list of key codes, see the Virtual-Key Codes article in the MSDN library.
If the Win32API plugin is installed and enabled in TestComplete, you can use the named constants
VK_xxxx instead of the hard-coded key code values. The available
VK_xxxx constants are listed under the
Win32API node in the Code Completion window.
The number of milliseconds passed after you command TestComplete to simulate the release of a key and before TestComplete starts simulating the release. The delay gives you the possibility to better emulate real-life conditions. Also, it is necessary so the key press can be properly processed by the operating system.
To view an example that demonstrates how to use the
KeyUp method, see the
KeyDown help topic.