drag

fun drag(start: Point, dest: Point): Boolean

Holds down the left or right button, and drags the mouse to the specified location.

Return

Whether or not the mouse click has been successfully simulated.

Parameters

start

The point of where to drag from

dest

Where to drag to will click the right.

fun drag(x1: Int, y1: Int, x2: Int, y2: Int): Boolean