This software component was designed to help users capture keyboard and mouse input. In addition, they have the ability to log and filter particular events.
pyHook
pyHook was designed in the Python programming language to serve as a wrapper for global input hooks in various Windows operating systems. This lightweight utility is commonly used for creating simple keylogger scripts to capture keystroke activities on a computer and store them in a TXT file.
Brief review
More precisely, this software distribution wraps the Window SetWindowsHookEx API function via low-level keyboard and mouse hooks. It is able to provide callback global input events. Callbacks for key and mouse movements can decide whether or not to allow the event messages to go to the windows for which they were intended.
Operation
In order to receive mouse events, you need to create a HookManager object in Python and provide it with callbacks in which you are interested. For example, you can select to obtain only left button down events or right button up events, movement, or all interactions. Moreover, each type of action may be directed to one callback function.
Reports
It is necessary to mention that the underlying C library reports information like the time of the event, the name of the window in which it occurred, its value, different keyboard modifiers and more. It is also possible to log and filter particular events.
Features
- free to download and use;
- compatible with modern Windows versions;
- gives you the ability to callback global input events;
- it is possible to register handles for specific actions;
- allows you to view detailed reports information;
- you can log and filter particular events.