[python-win32] COM Dispatch w/multiple sessions?

Mark Hammond mhammond at skippinet.com.au
Tue May 6 07:28:19 CEST 2008


You probably want win32com.client.DispatchEx(), which doesn't try and "get
current object" magic.

 

Cheers,

 

Mark

 

From: python-win32-bounces+mhammond=keypoint.com.au at python.org
[mailto:python-win32-bounces+mhammond=keypoint.com.au at python.org] On Behalf
Of Adam Pletcher
Sent: Tuesday, 6 May 2008 12:45 PM
To: python-win32 at python.org
Subject: [python-win32] COM Dispatch w/multiple sessions?

 

I have a tool that interacts with a COM server created by a third-party
application.  My users sometimes need to open mutiple copies of that
application.  You can probably guess where this is going.

 

Is there any way to tell win32com.client to connect to a specific
instance/process of that application?

 

I'm currently using the typical win32com.client.Dispatch, which seems to
just bind to the first process opened using that COM interface.  Any
suggestions/workarounds appreciated.

 

- Adam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080506/04574025/attachment.htm>


More information about the python-win32 mailing list