By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,279 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

Waiting for 3rd party program to reach a certain point

P: 2
I am developing a program that will run a third party program, automate this program's actions, then close the program. The problem is, once this third party program is complete, it just sits there. There is no way to pick up whether or not the action is complete. I have thought about having my program wait a set amount of time for the 3rd party program to run, but this is too unpredictable. The 3rd party program can take anywhere from about 20 seconds to 5 minutes. I do not have the source code for the 3rd party program. Anybody have any ideas?

The 3rd party program essentially just unpacks some files into a folder - fyi.
Jun 14 '12 #1
Share this Question
Share on Google+
1 Reply


P: 2
For a solution, I've created a bit of code using AutoIT, which has functions to read text that is displayed in any window. I had AutoIT search for a certain string that indicated that the 3rd party program was complete. In this case, the string "Completed."
Jun 14 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.