Re: [python-win32] Confusion with 'SetForegroundWindow()

2008-03-18 Thread Tim Roberts
Scott Nelson wrote: FWIW, when the exception is thrown and caught, the window's icon in the taskbar will blink. I believe this means the window received an event it can't handle or display? Right. Either the event loop is busy, or the current foreground application refused to yield. --

[python-win32] Confusion with 'SetForegroundWindow()

2008-03-17 Thread Scott Nelson
Greets... I'm looking to use the win32api and win32gui modules to do a bit of Windows tinkering (win2k, ActiveState's Python 2.4.1 distribution) and I've hit a snag. I'd like to have my process/window steal the focus from whatever window currently has it, get a bit of input from the keyboard,

Re: [python-win32] Confusion with 'SetForegroundWindow()

2008-03-17 Thread Tim Roberts
Scott Nelson wrote: I'm looking to use the win32api and win32gui modules to do a bit of Windows tinkering (win2k, ActiveState's Python 2.4.1 distribution) and I've hit a snag. I'd like to have my process/window steal the focus from whatever window currently has it, get a bit of input from