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.

Passing button types:

  • 1.) Left mouse

  • 2.) Right mouse

Click

mouse.click(int: button);

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

Key down

mouse.down(int: button);

Key up

mouse.up(int: button);

Last updated

Was this helpful?