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?