How to run an EXE, with argument, capture output value

noydb noydb00 at gmail.com
Fri Nov 19 21:39:29 EST 2010


Thanks to Jerry Hill above who helped.
This worked:

from pywinauto.application import Application
app = Application()
app.start_(r'C:\temp\hallbig2.exe')
app.Form1.Edit6.TypeKeys(r'C:\temp\input\Ea39j.txt')
E_Value = ""
while (E_Value == ""):
    app.Form1.Compute.Click()
    E_Value = app.Form1.Edit8.WindowText()
print repr(E_Value)
app.Kill_()



More information about the Python-list mailing list