I've been looking around but I can't find an example of how to use pyhook to respond to key combinations such as Ctrl + C whereas it is easy to find examples of how to respond to single keypresses such as Ctrl or C separately.
BTW, I'm talking about Python 2.6 on Windows XP.
Any help appreciated.
You can use the following code to watch what pyHook returns:
using this, it appears that pyHook returns
(Python 2.7.1, Windows 7, pyHook 1.5.1)
Actually Ctrl+C have it's own Ascii code (which is 3). Something like this works for me:
Have you tried to use the GetKeyState method from HookManager? I haven't tested the code but it should be something like this:
Here is further documentation on GetKeyState
I didn't have luck with any of the other answers, so this is what I took to doing