odd error

Tim Golden mail at timgolden.me.uk
Tue Mar 9 11:34:03 EST 2010


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.

TJG



More information about the Python-list mailing list