Re: [python-win32] windows 2008 services on reboot

2011-06-23 Thread Mark Hammond
On 21/06/2011 8:58 AM, Matt Jibson wrote: I'm using the win32 extensions to install and run a service that can take 10-15 seconds to gracefully shutdown. It successfully receives the shutdown signal, but Windows Server 2008 kills the process before it can shutdown normally. Works fine on Windows

Re: [python-win32] Finding out whether there are any visible windows

2011-06-23 Thread Greg Ewing
Tim Golden wrote: Just for information, my nearly-what-you-want is here: http://timgolden.me.uk/python/win32_how_do_i/find-the-window-for-my-subprocess.html Yep, I came up something similar -- was just wondering whether there was some more obvious way that I was missing. Seems not. Thanks, G

Re: [python-win32] Finding out whether there are any visible windows

2011-06-23 Thread Tim Golden
On 23/06/2011 08:03, Greg Ewing wrote: In PyGUI I have a need to find out whether the application has any visible windows, so I can quit when the last visible window is closed. However, I can't seem to find a way of iterating over all the windows belonging to the application, without also gettin

[python-win32] Finding out whether there are any visible windows

2011-06-23 Thread Greg Ewing
In PyGUI I have a need to find out whether the application has any visible windows, so I can quit when the last visible window is closed. However, I can't seem to find a way of iterating over all the windows belonging to the application, without also getting windows belonging to *other* applicati