tags:

views:

59

answers:

2

I have a program here that has an entry box and a button.

I want python to enter a string into the entry box, then press the button. What is the best way of going about this?

This is for windows 7, BTW.

+1  A: 

pyWinAuto will work nicely for this. With it you can "type" text into windows based on window title( or window class) as well as "click" buttons. Its fairly easy to use, and the website is pretty good about giving you examples on how to do what you want.

http://pywinauto.openqa.org/howto.html

Bryce
+1  A: 

I've heard of, but not yet tried myself:

Craig McQueen