This is a maintained fork of the original `pynput` library (by TheMouseOrTheKeyboard), designed specifically for Robocorp's automation needs. It provides cross-platform control and monitoring of user input devices like keyboards and mice, essential for Robotic Process Automation (RPA). Version 5.0.0, released recently, focuses on Python 3.10+ compatibility and Linux environment improvements. Releases align with Robocorp's product development, typically with minor versions for bug fixes and improvements.
pip install pynput-robocorp-forkVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to use the keyboard controller to type a string, press and release a special key (Enter), and perform a key combination (Ctrl+C).
Consult your operating system's documentation for granting accessibility/input control permissions to applications or users.
Use `threading.Thread` to run the listener in the background, or ensure `join()` is called only when the main thread can afford to block.
Upgrade to `pynput-robocorp-fork` version 5.0.0 or newer to ensure full compatibility with Python 3.10+.
Always use `pynput-robocorp-fork` for projects intended for Robocorp environments. Refer to the Robocorp fork's GitHub repository for any specific divergences or feature sets.