moveByPath
Emulates mouse movement through the specified intermediate points.
Syntax
moveByPath = function(aPath, aLeftButton);
Parameters
- aPath
- functions: array of intermediate points
- aLeftButton
- functions: a flag indicating whether there should be pressing the left mouse button
Examples
//Move the mouse cursor over an arc of a parabola var path = []; for (var i = 0; i < 100; i++){ var point = {}; point.x = i*2; point.y = Math.round(point.x*point.x/100); point.duration = Math.round(i/10); path.push(point); } moveByPath(path);