> 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
"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
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.Visible = True
mydoc = myapp.Documents.Open(...)
My problem is to make sure the insta