Use this method to simulate pressing a mouse button at a point with the specified screen coordinates.
TestObj.MouseDown(VK, X, Y)
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The method is applied to the following object:
To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
The method has the following parameters:
Specifies the button to be pressed. You can use the following values for the parameter:
||1||The left mouse button.|
||2||The right mouse button.|
||4||The middle mouse button.|
If the Win32API plugin is installed in TestComplete, you can refer to the constants using their names without defining them in scripts.
The screen-relative horizontal coordinate of the pixel at which pressing the mouse button will be simulated.
The screen-relative vertical coordinate of the pixel at which pressing the mouse button will be simulated.
MouseDown method does not interact with the tested application. This makes the method useful for testing specific ActiveX controls.
To release the mouse button, use the