How to run an EXE, with argument, capture output value
malaclypse2 at gmail.com
Fri Nov 19 17:52:21 CET 2010
On Fri, Nov 19, 2010 at 9:52 AM, noydb <noydb00 at gmail.com> wrote:
> Any other help? I am guessing not, just wanted to try one more time.
> Could really use help, please!!
You'll need to give us more information about the program you're
trying to automate. It originally sounded like you just needed to run
a console program, where it's usually fairly easy to run and capture
the output with the subprocess module. Now it sounds like you're
trying to automate a GUI that requires user interaction. That's quite
a bit more complicated.
When you run "stats_hall.exe", what do you get on the screen? What,
exactly, are the steps a normal user would need to perform to do what
you want to automate? After the values you're interested in are
computed, where do they show up? Is this program publically available
I've generally had good luck doing simple GUI automation with
pywinauto. The homepage appears to be: http://pywinauto.pbworks.com
which has installation instructions and a FAQ. You might also find
this demo useful:
More information about the Python-list