Re: embedded Python calling app via COM

2006-06-23 Thread Jim
> Pythoncom.GetActiveObject will retrieve the running instance of the app. Thanks Roger, that does seem to do the trick. I haven't tested to see what happens if there are two instances of the app running, I'm hoping it will return the frontmost visible one. -- Jim -- http://mail.python.org/m

Re: embedded Python calling app via COM

2006-06-22 Thread Roger Upole
"Jim" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a C++ app which fires up a Python script using C API calls. > That script operates the app via Automation calls, like this: > > from win32com.client import * > from mywrapper import * > > myapp = Application() > myapp.Visibl