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

 

Cheers,

 

Mark

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Adam Pletcher
Sent: Tuesday, 6 May 2008 12:45 PM
To: [email protected]
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

_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to