Key Trapping without Focus
I’m wondering if anyone has any ideas on how to get a wxApplication to catch a Key event without the application window not being in focus.
I’m only interested in the Windows 2000/XP environment.
The idea being that a keyboard even will trigger my program even though it’s still hidden.
I’ve tried setting keyboard events to the wxTaskbar, but that doesn’t seem to catch anything.
Any suggestions ?
You could try:
http://www.wxpython.org/docs/api/wx.Window-class.html#RegisterHotKey
Peter.
···
On Tue, 04 Oct 2005 17:11:32 +0300, Lorne White <Lorne.White@TELUS.COM> wrote:
I'm wondering if anyone has any ideas on how to get a wxApplication to catch a Key event without the application window not being in focus.
I'm only interested in the Windows 2000/XP environment.
The idea being that a keyboard even will trigger my program even though it's still hidden.
I've tried setting keyboard events to the wxTaskbar, but that doesn't seem to catch anything.
Any suggestions ?