Boppreh/mouse
lastmod 2026-11-10created 2022-08-043 edits
mouse is a pure Python library that hooks and simulates global mouse events. It can hook system-wide click, move, and wheel events to run callbacks even when no particular window has focus, move the mouse and generate clicks from code, and record and replay events. It pairs with the same author's keyboard library, is used for GUI automation and writing macros, and supports Windows and Linux.
Hook and simulate global mouse events in pure Python
See also
- boppreh/keyboard - Hook and simulate global keyboard events on Windows and Linux.
- python