input

Interact with mouse and keyboard.

When passing a button to the mouse:

  • 1 - Left Mouse

  • 2 - Right Mouse

  • 3 - Middle Mouse

When passing a key to the keyboard:

https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes

Functions:

Mouse Move

input.mouse_move(int: x, int: y)

Mouse Click

input.mouse_click(int: button)

Simulates a click.

Mouse Down

input.mouse_down(int: button)

Simulates holding a mouse button down.

Mouse Up

input.mouse_up(int: button)

Simulates lifting a mouse button.

Cursor Position

input.cursor_position()

Returns the x, y coordinates of the cursor.

Last updated