How to control app from Python?

Edward Muller edwardam at home.com
Wed Oct 27 23:04:44 EDT 1999


Andy Fox wrote:

> Hi,
>
> I'd like to use Python to control another (non Python) app.  Ideally, I
> would like to start the other app, then tell it to do a few things, then
> stop it.
>

What platform?

>
> I've done some experimenting with os.system() and os.popen().  It is
> remarkably easy to start an app, but not so easy to stop it.
>
> I've found some really interesting looking functions in the win32pipe
> module, but I'm at a loss how to use them.  For example, there's a
> 'popen' 'popen2' 'popen3' and 'popen4.'  There must be a reason for
> having four apparently similar functions.
>
> I'm using 1.5.2 on a Windows NT box.  I've been swimming around in
> documentation for the last few days, and doing some experimenting, but
> could use some guidance.
>

oh....Do you want to type and click and stuff? (ie.. is it a visual appp?)
Or is it a console typpe of app?

>
> Any suggestions?
> --
> Andy Fox





More information about the Python-list mailing list