Re: Problems with threaded Hotkey application

2009-03-25 Thread Michael Torrie
Anita Whitney wrote: > A window comes up saying "hotkeyapp has stopped working." How do I > get in there to "move the RegisterHotKey line to within the thread's > run method," etc.? Im trying to do this myself and not pay Acer tech > support. Thanks, Anita Whitney Is this a wxPython application t

Problems with threaded Hotkey application

2009-03-25 Thread Anita Whitney
A window comes up saying "hotkeyapp has stopped working." How do I get in there to "move the RegisterHotKey line to within the thread's run method," etc.? Im trying to do this myself and not pay Acer tech support. Thanks, Anita Whitney-- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with threaded Hotkey application

2005-11-23 Thread Rsrany
Thanks Tim, that resolved it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with threaded Hotkey application

2005-11-23 Thread Tim G
One obvious point is that, according to: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceui40/html/cerefWM_HOTKEY.asp the WM_HOTKEY message is posted to the queue *of the thread which registered the hotkey*. I haven't yet tried it myself to see, but in your example the main th

Re: Problems with threaded Hotkey application

2005-11-23 Thread Tim G
And just to confirm, it does in fact work. If you move the RegisterHotKey line to within the thread's run method, the thread's message loop picks up the hotkey press. -- http://mail.python.org/mailman/listinfo/python-list

Problems with threaded Hotkey application

2005-11-22 Thread Rsrany
I've been working on a few gtk applications and need to tie a hot key catcher into a thread. I am currently finding threaded user32.GetMessageA do not work. I have included two programs: 1) a non-threaded version that works 2) a threaded version that doesnt work. Any constructive suggestion