moveToPoint
Emulates mouse movement to the specified point relative to the upper left corner of the window.
Syntax
moveToPoint = function(aPoint, aPointCount, aInterval, aLeftButton); moveToPoint = function(aX, aY, aPointCount, aInterval, aLeftButton);
Parameter
- aPoint
- functions: target point
- aX
- functions: X coordinate of the target point
- aY
- functions: Y coordinate of the target point
- aPointCount
- functions: number of intermediate points
- aInterval
- functions: delay (in milliseconds) between movements from point to point
- aLeftButton
- functions: emulation of the pressed left mouse button
Examples
var point = {}; point.X = 500; point.Y = 400; //Emulate mouse movement to a point Point; moveToPoint(point);
//Emulate mouse movement to a point (500,400); moveToPoint(500,400);