ZennoLab Assemblies Documentation
MouseClick Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > Tab Class : MouseClick Method
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".

Glossary Item Box

Performs the mouse click event in specified point inside the current tab.

Syntax

C# 
public void MouseClick( 
   int x,
   int y,
   string button,
   string mouseEvent
)

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".

Example

The following code example demonstrates uses of the MouseClick method.
C#Copy Code
// 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");
PHPCopy Code
// 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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.