Simulate mouse click on a certain given Point (upper left is (0,0))

Namespace:  QAliber.Engine.Controls
Assembly:  QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public virtual void Click(
	MouseButtons button,
	Point rel
)
Visual Basic (Declaration)
Public Overridable Sub Click ( _
	button As MouseButtons, _
	rel As Point _
)
Visual C++
public:
virtual void Click(
	MouseButtons button, 
	Point rel
)

Parameters

button
Type: System.Windows.Forms..::.MouseButtons
The button to be clicked
rel
Type: System.Windows..::.Point
The point in pixels relative to the top left corner of the control

Examples

CopyC#
 //click around the upper left corner
Desktop.UIA.Click(MouseButtons.Right,new Point(50,50));

See Also