How call running process?

Roger Upole rupole at compaq.net
Wed Sep 13 17:50:39 EDT 2000


win32com.client.GetActiveObject will return an already running instance.
For example, if Outlook is running,
win32com.client.GetActiveObject ('Outlook.Application')
will give you access to that same instance.

HTH
Roger Upole

"Dag W" <dag at whoi.edu> wrote in message news:39BFC414.2E373678 at whoi.edu...
> A question about pythonwin/win32com
>
> How do you from one COM object (A) find and get at another, already
> running COM server (B)? The most examples I have come across create a
> new COM server, do their stuff and everything is fine.
>
> If object B already is running and I want to inspect its state from A,
> how do I find B, and get access to its methods? I have done some of the
> simpler stuff, using 'inproc' servers. Just switching to 'local server'
> at Dispatch (or registration) doesn't help. Do I need
> PumpWaitingMessages? What else? Any example source?
>
> Thank you!
>
> /Dag
>
> (yes, I have the book...)






More information about the Python-list mailing list