ZennoLab Assemblies Documentation
Click Method (Instance)
Example 
ZennoLab.CommandCenter Namespace > Instance Class : Click Method

Type: System.Int32

The minimum x coordinate.

Type: System.Int32

The maximum x coordinate.

Type: System.Int32

The minimum y coordinate.

Type: System.Int32

The maximum y coordinate.

Type: System.String

The mouse button type. It can have a value "Left", "Right", "DoubleClick".

Type: System.String

The click distribution type. It can have a value "Normal", "Random".

Emulates a click on specified area.
Syntax

Parameters

xMin

Type: System.Int32

The minimum x coordinate.
xMax

Type: System.Int32

The maximum x coordinate.
yMin

Type: System.Int32

The minimum y coordinate.
yMax

Type: System.Int32

The maximum y coordinate.
clickType

Type: System.String

The mouse button type. It can have a value "Left", "Right", "DoubleClick".

clickDistributionType

Type: System.String

The click distribution type. It can have a value "Normal", "Random".

Remarks
The emulation of click made only on the active tab.
Example
The following example uses the Click method for emulation of click in specified area.
// navigate to lessons.zennolab.com
instance.ActiveTab.Navigate("lessons.zennolab.com", "");
 
// waiting for page loading
instance.ActiveTab.WaitDownloading();
 
// emulation of click
instance.Click(100, 100, 200, 200, "Left", "Normal");
// navigate to lessons.zennolab.com
$instance->ActiveTab->Navigate("lessons.zennolab.com", "");
 
// waiting for page loading
$instance->ActiveTab->WaitDownloading();
 
// emulation of click
$instance->Click(100, 100, 200, 200, "Left", "Normal");
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

Instance Class
Instance Members