Содержание

MoveByPath

Emulates mouse movement through the specified intermediate points.

Syntax

procedure MoveByPath(aPath:TCSMovePath; aLeftButton: boolean = false);

Parameters

  • aPath
    • functions: array of intermediate points
  • aLeftButton
    • type: boolean
    • functions: a flag indicating whether there should be pressing the left mouse button

Examples

  1. //Move the mouse cursor over an arc of a parabola
    var path:TCSMovePath;
    var point:TCSMovePoint;
    var i:integer;
    for i:=0 to 100 do
      begin
        point.X:=i*2;
        point.Y:=round(point.X*point.X/100);
        point.Duration:=round(i/10);
        path.add(point);
      end;
    MoveByPath(path);