Click Method (IClickable)

Class

IClickable.

Action

Clicks on the object.

Syntax

C#
iClickable.Click([button, pos, modifiers])
VB
iClickable.Click([button, pos, modifiers])
Variable Description
button Optional: The mouse button to press. Values include: 1=left, 2=right,3=center,... MouseButton.
pos Optional: The coordinates (relative to the object) at which to click. Point.
modifiers Optional: The modifier. ModifierKeys.

Examples

C#

For example, in order to click on a certain position within a control, type the following:
control.Click(MouseButton.Left, new Point(244, 16));
The following example uses the left mouse button to click in the center of the control:
control.Click();

VB

For example, in order to click on a certain position within a control, type the following:
control.Click(MouseButton.Left, New Point(244, 16))
The following example uses the left mouse button to click in the center of the control:
control.Click()