LLPlayer.MouseUp Method

Applies to TestComplete 15.69, last modified on November 13, 2024

Description

Use the 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.

Declaration

LLPlayer.MouseUp(Button, X, Y, Delay)

Button [in]    Required    Integer    
X [in]    Required    Integer    
Y [in]    Required    Integer    
Delay [in]    Required    Integer    
Result None

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

Button

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).

Constant Integer Value Description
MK_LBUTTON 1 The left mouse button.
MK_RBUTTON 2 The right mouse button.
MK_MBUTTON 16 The middle mouse button.

X

Specifies the horizontal coordinate of the point of the click.

Y

Specifies the vertical coordinate of the point of the click.

Delay

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.

Result Value

None.

Example

To view an example that demonstrates how to use the MouseUp method, see the MouseDown help topic.

See Also

Testing Applications in Low-Level Mode
MouseDown Method
MouseMove Method
MouseWheel Method
Low-Level Procedure Events
MouseUp Method (Desktop Objects)
Simulating Mouse Wheel Rotation

Highlight search results