Created by: Enteleform
What is this Python project?
github.com/boppreh/keyboard:
Take full control of your keyboard with this small Python library. Hook global events, register hotkeys, simulate key presses, and much more.
github.com/boppreh/mouse:
Take full control of your mouse with this small Python library. Hook global events, simulate mouse movement & clicks, and much more.
What's the difference between this Python project and similar ones?
This set of libraries offers much more functionality than those currently listed on awesome-python. They allow for complete management of all global key & mouse events.
Some features:
-
global hooks - push all Key/Mouse events to provided callbacks - keyboard[KeyboardEvent], mouse[ButtonEvent, MoveEvent, WheelEvent]
-
global hotkey registration - push only defined Key events to provided callbacks - left & right modifier keys are recognized separately
-
input simulation - key chords, keypress sequences, mouse click/drag/scroll - allows custom delay
-
macro recording & playback - capture keystrokes in realtime, play them back @ custom speed
-
wait
event - blocks thread until defined Key/Mouse events are received
While not fully cross-platform (OSX is currently listed as experimental), these are the best choices I've come across for anyone looking for full access to keyboard & mouse functionality on the Windows & Linux platforms.
Both libraries are also very well documented.
Anyone who agrees with this pull request could vote for it by adding a