ZennoLab Assemblies Documentation
MouseMove(Point[],Int32[],Boolean,Boolean) Method
Example 

Type: System.Drawing.Point[]

An array of the points where are performed the mouse move event.

Type: System.Int32[]

An array of the delay in milliseconds for each position.

Type: System.Boolean

true if necessary performs the left mouse click in the end point: otherwise false. Default value is false.

Type: System.Boolean

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

Performs the mouse move event in specified array of the coordinates with delay between all moving.
Syntax
public void MouseMove( 
   Point[] points,
   int[] delay,
   bool useClick,
   bool considerScroll
)

Parameters

points

Type: System.Drawing.Point[]

An array of the points where are performed the mouse move event.

delay

Type: System.Int32[]

An array of the delay in milliseconds for each position.

useClick

Type: System.Boolean

true if necessary performs the left mouse click in the end point: otherwise false. Default value is false.

considerScroll

Type: System.Boolean

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

Remarks
The parameter delay can be null or empty. In this case the method uses the default value of the delay. Also the length of delay and points can be different.
Example
The following code example demonstrates uses of the MouseMove method.
// create points
Point[] points = new Point[10] 
{
    new Point(100, 100),
    new Point(110, 110),
    new Point(120, 120),
    new Point(130, 130),
    new Point(140, 140),
    new Point(150, 150),
    new Point(160, 160),
    new Point(170, 170),
    new Point(180, 180),
    new Point(190, 190)
};
 
// create delay
int[] delay = new int[10] { 100, 100, 100, 100, 100, 100, 100, 100, 100, 100 };
 
// perform the mouve move events
instance.ActiveTab.MouseMove(points, delay, false, false);
// create points
$points = array( 
    new System\Drawing\Point(100, 100),
    new System\Drawing\Point(110, 110),
    new System\Drawing\Point(120, 120),
    new System\Drawing\Point(130, 130),
    new System\Drawing\Point(140, 140),
    new System\Drawing\Point(150, 150),
    new System\Drawing\Point(160, 160),
    new System\Drawing\Point(170, 170),
    new System\Drawing\Point(180, 180),
    new System\Drawing\Point(190, 190)
);
 
// create delay
$delay = array(100, 100, 100, 100, 100, 100, 100, 100, 100, 100);
 
// perform the mouve move events
$instance->ActiveTab->MouseMove($points, $delay, false, false);
Requirements

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

See Also

Reference

Tab Class
Tab Members
Overload List
DragDrop Method
MouseClick Method
MouseWheel Method

Send Feedback