Содержание

moveByPath

Emulates mouse movement through the specified intermediate points.

Syntax

moveByPath = function(aPath, aLeftButton);

Parameters

Examples

  1. //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);