ZennoLab Assemblies Documentation
RiseEvent Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > Tab Class : RiseEvent Method
eventName

Type: System.String

The event name.

rectangle

Type: System.Drawing.Rectangle

The rectangular area.

clickType

Type: System.String

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

Glossary Item Box

Rise specified event in the rectangular area.

Syntax

C# 
public void RiseEvent( 
   string eventName,
   Rectangle rectangle,
   string clickType
)

Parameters

eventName

Type: System.String

The event name.

rectangle

Type: System.Drawing.Rectangle

The rectangular area.

clickType

Type: System.String

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

Example

The following code example demonstrates uses of the RiseEvent method.
C#Copy Code
// clear cookie
instance.ClearCookie();
 
// navigate to lessons.zennolab.com
instance.ActiveTab.Navigate("lessons.zennolab.com", String.Empty);
 
// wait downloading
if (instance.ActiveTab.IsBusy) instance.ActiveTab.WaitDownloading();
 
// create rectangular area
Rectangle rec = new Rectangle(600, 95, 120, 25);
 
// rise event
instance.ActiveTab.RiseEvent("click", rec, "Left");
 
// wait downloading
instance.ActiveTab.WaitDownloading();
PHPCopy Code
// clear cookie
$instance->ClearCookie();
 
// navigate to lessons.zennolab.com
$instance->ActiveTab->Navigate("lessons.zennolab.com", "");
 
// wait downloading
if ($instance->ActiveTab->IsBusy) $instance->ActiveTab->WaitDownloading();
 
// create rectangular area
$rec = new Rectangle(600, 95, 120, 25);
 
// rise event
$instance->ActiveTab->RiseEvent("click", rec, "Left");
 
// wait downloading
$instance->ActiveTab->WaitDownloading();

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.