Set global hotkey with Python 2.6
问题 I wanna setup a global hotkey in python 2.6 that listens to the keyboard shortcut ctrl + D or ctrl + alt + D on windows, please help me 回答1: Tim Golden's python/win32 site is a useful resource for win32 related programming in python. In particular, this example should help: Catch system-wide hotkeys 回答2: I suggest pyhk. It allows for global wide hotkey registration in python and comes with examples and documentation. Pyhk builds on pyhook. Hotkey registration is as simple as: pyhk.addHotkey