David K.
David K.

Reputation: 6361

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.

Upvotes: 3

Views: 1707

Answers (1)

David K.
David K.

Reputation: 6361

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.

Upvotes: 3

Related Questions