Use python to execute a windows program

Jerry Hill malaclypse2 at gmail.com
Fri Sep 11 21:56:02 CEST 2009


On Fri, Sep 11, 2009 at 3:31 PM, Doran, Harold <HDoran at air.org> wrote:
> Thanks, Jerry. Tried that, as well as various other possible names to no
> avail.

You'll need to dig into the documentation then, probably starting in
one of these two places:
http://pywinauto.openqa.org/howto.html
http://pywinauto.openqa.org/module-pywinauto.application.html

The howto says that once you've started your application, calling
app.windows_() will return a list of visible, enabled, top level
windows of the application.  Try printing those and seeing if any of
them look like the window you want.  Or maybe try app.top_window_()
which tries to guess which window might be the "main" window of your
application.

-- 
Jerry



More information about the Python-list mailing list