I want to write a convenient front-end to the old and ugly Win95 application. I nailed the problem to this:
- Invoke the target executable;
- Wait for application window to appear;
- Wait for message box (i hope it is a message box) to appear;
- Trigger an onClick event for the “OK” button of the message box;
- Wait for the application to exit.
1st and 5th items are easy, it is just the System.Diagnostics.ProcessStartInfo stuff; but i have no idea where to start with the rest of items. How could it be done?
Take a look at the windows automation framework, this is a good starter codeproject.com/Articles/141842/
Sorry for the delay.