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.
To view an example that demonstrates how to use the
MouseUp method, see the
MouseDown help topic.