Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

monitor keyboard events with python in windows 7

Is there any way to monitor keyboard events in windows 7 with python without the python program having focus? I would like to run the python script as a background process that monitors certain keyboard events and does certain things on various keyboard input combinations.

like image 791
David K. Avatar asked Aug 03 '26 18:08

David K.


1 Answers

Ok, I got pyHook working after installing the 32bit version of python 2.7 and compiling pyHook from the source with MinGW. Thanks for the pointers everyone.

like image 72
David K. Avatar answered Aug 05 '26 07:08

David K.