Library to hook and simulate mouse events on Windows and Linux. Current version 0.7.1. Maintained infrequently, with rare releases.
pip install mouseVerified import paths — ran on the pinned version, not inferred.
Move mouse, click, listen to clicks, record and replay events.
Use mouse.hook() to capture events non-blockingly, or run record() in another thread and call mouse.unhook_all() to stop.
Run as root or add user to 'input' group. Check /dev/input/mice access.
Use on_click callback to detect button presses instead.
Upgrade: pip install --upgrade mouse
Add user to 'input' group: sudo usermod -a -G input $USER then logout/reboot, or run script with sudo.
pip install mouse
No dependency data recorded yet.