How to create a global hotkey?

k04jg02 at gmail.com k04jg02 at gmail.com
Fri Dec 8 11:43:36 EST 2006


Sorry, I should have mentioned that I'm running Linux, and I only will
be running this app while X is running. pyHook doesn't seem to be an
option because it's win32 only. I'm guessing python-xlib is the way to
go, but it seems to be that it relies on you understanding the C xlib
library, which is old and heavily obfuscated. Any advice on how to use
python xlib to register a global hotkey? In the docs I found the
KeyEvent event type, but it seems to want a specific window too.




More information about the Python-list mailing list