Use this method to simulate pressing a mouse button at a point with the specified screen coordinates.
TestObj.MouseDown(VK, X, Y)
The method is applied to the following object:
The method has the following parameters:
Specifies the button to be pressed. You can use the following values for the parameter:
If the Win32API plug-in 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.
Unlike Click, ClickM, ClickR, DblClick, DblClickM and DblClickR, the 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 MouseUp method.
© 2012 SmartBear Software. All rights reserved.