I just need an example vi or tool can do following automatically instead of mouse click and enter keyboard:
1. Detect the application window (handle), click one of the buttons(most of time just a OK button) on it.
2. Fill out one blank try on the window. (I already have vi can read strings from file).
In the test, I have to repeat above 2 steps hundreds of times, with click different button, enter string manually. Now I do it manually which is boring and time consuming. I want to automate the test and have some vi to read string from file, decide which button to cl