ZennoLab Assemblies Documentation
Click Method (Instance)
Example 

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's can have a value "Left", "Right", "DoubleClick".

Type: System.String

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

Emulates a click on specified area.
Syntax
public void Click( 
   int xMin,
   int xMax,
   int yMin,
   int yMax,
   string clickType,
   string clickDistributionType
)

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's can have a value "Left", "Right", "DoubleClick".

clickDistributionType

Type: System.String

The click distribution type. It's 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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

Reference

Instance Class
Instance Members

Send Feedback