tap

fun tap(point: Point, durationMs: Int = 0, getPoint: Callable<Point> = Callable { Point.Nil }): Boolean

Simulates the mouse clicking the specified button at the specified location.

Return

Whether or not the mouse click has been successfully simulated.

Parameters

point

The point of where to move the mouse and click.

button

The button index to simulate.

fun tap(x: Int, y: Int, durationMs: Int = 0, getPoint: Callable<Point> = Callable { Point.Nil }): Boolean

Simulates the mouse clicking the specified button at the specified location.

Return

Whether or not the mouse click has been successfully simulated.

Parameters

x

The point which lies on the x-axis of where to click.

y

The point which lies on the y-axis of where to click.

durationMs

how long to press for before release