In fact, the package that wraps the SetWindowsHookEx function is called pyHook . I used it before to write a primitive registrar key (as an experiment to monitor myself, to help report hours of operation), and it did a great job of this.
source
share