Re: [python-win32] How do you find the Windows process ID of a COM server?

2008-02-13 Thread Tim Roberts
Salim Fadhley wrote: > > This is all new stuff to me. At the moment I do not have a handle to > the Excel window, nor do I know how to get that. Presumably this is > something that I can extract from the COM server? No, unfortunately. However, you can use the FindWindow API to do this. It

Re: [python-win32] How do you find the Windows process ID of a COM server?

2008-02-13 Thread Sidnei da Silva
On Feb 13, 2008 1:00 PM, Salim Fadhley <[EMAIL PROTECTED]> wrote: > Thanks Kevin, > > This is all new stuff to me. At the moment I do not have a handle to the > Excel window, nor do I know how to get that. Presumably this is something > that I can extract from the COM server? > > This window handle

Re: [python-win32] How do you find the Windows process ID of a COM server?

2008-02-13 Thread Salim Fadhley
Thanks Kevin, This is all new stuff to me. At the moment I do not have a handle to the Excel window, nor do I know how to get that. Presumably this is something that I can extract from the COM server? This window handle of which you speak - is it anything more than a COM object that represents th

[python-win32] How do you find the Windows process ID of a COM server?

2008-02-13 Thread Salim Fadhley
I'm trying to write a Python program to automate the testing of a very large number of Excel spreadsheets. From time to time these spreadsheets mis-behave and leave Excel in an unstable state - under those circumstances I would like to kill off Excel and restart my COM server with a new process. U