ZennoLab Assemblies Documentation
MouseClick Method (Tab)
Example 

Type: System.Int32

The x coordinate inside tab's area for rise mouse click event.

Type: System.Int32

The y coordinate inside tab's area for rise mouse click event.

Type: System.Int32

The mouse button. It can be "left", "right" or "middle".

Type: System.Int32

The mouse button event. It can be "click", "down" or "up".

Type: System.Int32

true if necessary to consider scroll position of the browser; otherwise false. Default value is false.

Performs the mouse click event in specified point inside the current tab.
Syntax
public void MouseClick( 
   int x,
   int y,
   string button,
   string mouseEvent,
   bool considerScroll
)

Parameters

x

Type: System.Int32

The x coordinate inside tab's area for rise mouse click event.

y

Type: System.Int32

The y coordinate inside tab's area for rise mouse click event.

button

Type: System.Int32

The mouse button. It can be "left", "right" or "middle".

mouseEvent

Type: System.Int32

The mouse button event. It can be "click", "down" or "up".

considerScroll

Type: System.Int32

true if necessary to consider scroll position of the browser; otherwise false. Default value is false.

Example
The following code example demonstrates uses of the MouseClick method.
// perform left mouse click in location [100,200]
instance.ActiveTab.MouseClick(100, 200, "left", "click");
// perform right mouse down in location [100,200]
instance.ActiveTab.MouseClick(150, 300, "right", "down");
// perform left mouse click in location [100,200]
$instance->ActiveTab->MouseClick(100, 200, "left", "click");
// perform right mouse down in location [100,200]
$instance->ActiveTab->MouseClick(150, 300, "right", "down");
Requirements

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

See Also

Reference

Tab Class
Tab Members
DragDrop Method
MouseMove Method
MouseWheel Method

Send Feedback