Class: BezierMouse

BezierMouse~BezierMouse(mouseSpeed)

BezierMouse class generates natural mouse movement using bezier curves

Constructor

new BezierMouse(mouseSpeed)

constructor
Parameters:
Name Type Description
mouseSpeed number mouse movement speed in pixels per second
Source:

Methods

(async) move(initPos, finPos, opts)

move: moves mouse on a bezier curve
Parameters:
Name Type Description
initPos Point
finPos Point
opts Options
Source:

(async) moveAndClick(initPos, finPos, clickType, opts)

moveAndClick: moves mouse on a bezier curve and clicks
Parameters:
Name Type Default Description
initPos Point
finPos Point
clickType String LEFT enum: LEFT, MIDDLE, RIGHT
opts Options
Source:

(async) moveAndDoubleClick(initPos, finPos, clickType, opts)

moveAndDoubleClick: moves mouse on a bezier curve and double clicks
Parameters:
Name Type Default Description
initPos Point
finPos Point
clickType String LEFT enum: LEFT, MIDDLE, RIGHT
opts Options
Source: