inputs
Platypush documentation
inputs
- class platypush.plugins.inputs.InputsPlugin(**kwargs)[source]
Bases:
Plugin
This plugin emulates user input on a keyboard/mouse. It requires the a graphical server (X server or Mac/Win interface) to be running - it won’t work in console mode.
Requires:
pyuserinput (
pip install pyuserinput
)
- mouse_click(x: int, y: int, btn: int, repeat: int = 1)[source]
Mouse click. :param x: x screen position :param y: y screen position :param btn: Button number (1 for left, 2 for right, 3 for middle) :param repeat: Number of clicks (default: 1)
- press_keys(keys: List[str])[source]
Emulate the pressure of multiple keys. :param keys: List of keys to be pressed.