ZennoLab Assemblies Documentation
RiseEvent Method (Tab)
Example 

Type: System.String

The event name.

Type: System.Drawing.Rectangle

The rectangular area.

Type: System.String

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

Rise specified event in the rectangular area.
Syntax
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.
// 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();
// 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: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

Tab Class
Tab Members
GetElementFromPoint Method

Send Feedback