MouseUp method to simulate the release of a mouse button. The method performs the same action as the MouseUp event of a low-level procedure.
LLPlayer.MouseUp(Button, X, Y, Delay)
The method is applied to the following object:
The method has the following parameters:
A constant specifying the mouse button, the releasing of which is to be simulated. You can use the following constants to specify the mouse button (these constants are provided by the Win32API plugin).
||1||The left mouse button.|
||2||The right mouse button.|
||16||The middle mouse button.|
Specifies the horizontal coordinate of the point of the click.
Specifies the vertical coordinate of the point of the click.
The number of milliseconds passed after you command TestComplete to simulate the releasing of a mouse button and before TestComplete starts simulating the release. The delay gives you a possibility to better emulate real-life conditions. Also, it is necessary to separate the releasing of a mouse button from other low-level events and to enable the operating system to properly process it.
If Delay is negative, it is set to the Auto-wait timeout.
If Delay is greater than 1000, the waiting progress will be shown in the TestComplete indicator during the test run.
To view an example that demonstrates how to use the
MouseUp method, see the
MouseDown help topic.
Testing Applications in Low-Level Mode
Low-Level Procedure Events
MouseUp Method (Desktop Objects)
Simulating Mouse Wheel Rotation