RegisterHotKey example?

Hi,

Does anybody happen to have a working RegisterHotKey example? I've been trying to register some keys using this method, but it keeps returning false. For some reason, nothing is registered. Some combinations I've tried:

     result = win.RegisterHotKey(ID, wx.MOD_WIN|wx.MOD_SHIFT, wx.WXK_F9)
     print result
     result = win.RegisterHotKey(ID, wx.MOD_WIN|wx.MOD_SHIFT, win32con.VK_F9)
     print result

...etc..., with varying modifiers (Shift, Ctrl, etc), and various keys. I'm not sure the wx.WXK_* codes are virtual key codes, and they differ from win32con's, but either way, it doesn't work. :-/

I guess It's possible that some of the combinations I tried are already registered, but *all* of them? Not so likely...

What am I doing wrong?

(If it matters, I'm using Windows XP, Python 2.3.3, wxPython 2.5.1.5.)

Thanks,

Hello!

Does anybody happen to have a working RegisterHotKey example? I've been

trying

to register some keys using this method, but it keeps returning false.

For

some reason, nothing is registered. Some combinations I've tried:

I asked the similar question some times ago. According to Robin Dunn it's a
wxPython bug. So RegisterHotKey is broken now. Hope it will be fixed in the
next release.

    Vladimir Ignatov