LLPlayer.MouseUp Method

Applies to TestComplete 14.0, last modified on January 23, 2019

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(ButtonXYDelay)

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
LLPlayer.MouseDown Method
LLPlayer.MouseMove Method
LLPlayer.MouseWheel Method
Low-Level Procedure Events
MouseUp Method (Desktop Objects)
Simulating Mouse Wheel Rotation

Highlight search results