mouse

Interact with the mouse device

Get position

mouse.getPosition();

Return's the current X and Y coordinates.

Move

mouse.move(int: x, int: y);

Moves the mouse by X and Y values.

Move to

mouse.moveTo(int: x, int: y)

Moves the mouse to a specific X and Y [Screen Coordinate] point on the screen.

Is left key down?

mouse.isLeftKeyDown();

Returns a boolean.

Is right key down?

mouse.isRightKeyDown();

Returns a boolean.

circle-info

Passing button types:

  • 1.) Left mouse

  • 2.) Right mouse

Click

This will automatically press the key and lift up the key after a randomized time.

Key down

Key up

Last updated

Was this helpful?