On 09/03/2010 16:34, Tim Golden wrote:
On 09/03/2010 13:55, Alex Hall wrote:
Hi all,
In the same program I wrote about yesterday, I have a dictionary of
keystrokes which are captured. I just tried adding a new one, bringing
the total to 11. Here are entries 10 and 11; 10 has been working fine
for months.
10 : (57, win32con.MOD_CONTROL),
11 : (99, win32con.MOD_CONTROL | win32con.MOD_SHIFT)
Now, though, when I press ctrl-shift-c (keystroke 11)
Ctrl-C (with or without any other modifier) has a special meaning
which overrides any hotkeys. You may be able to do something by
adding a break handler through SetConsoleCtrlHandler (exposed in
win32api). But it would obviously be a special case outside your
normal control flow.
... or you could use SetConsoleMode to disable input processing. But
that would only work (I think) in one console, not at a global level.
TJG
--
http://mail.python.org/mailman/listinfo/python-list