gzken Posted January 15, 2008 Share Posted January 15, 2008 Hi, i wrote two scripts to launch the same external program to generate two different reports, when scripts running, there would be two external program running. when the report is finished, the external program would pop-up the same message box contained same message 'Report complete'. these scripts executed parallel, so when i captured a message box contained 'Report complete', how could i detect the control belongs to which window(external program)? any ideas? many thanks... Link to comment Share on other sites More sharing options...
FireLordZi Posted January 15, 2008 Share Posted January 15, 2008 (edited) Well if its the same program twice, you can try to get the instance of the report's window. Edited January 15, 2008 by FireLordZi While Alive() { DrinkWine(); }AutoIt Programmer Link to comment Share on other sites More sharing options...
gzken Posted January 15, 2008 Author Share Posted January 15, 2008 Well if its the same program twice, you can try to get the instance of the report's window.in my script, i used winWait("win title","Report complete") function to wait the message box pop-up, when i got message box, it conclude that the program was finished. but there are two scripts run parallel, so how can i detect the message box belongs to which program? Link to comment Share on other sites More sharing options...
gzken Posted January 16, 2008 Author Share Posted January 16, 2008 any more advice please... Link to comment Share on other sites More sharing options...
Siao Posted January 16, 2008 Share Posted January 16, 2008 WinGetProcess() And compare it with the results of Run() "be smart, drink your wine" Link to comment Share on other sites More sharing options...
gzken Posted January 25, 2008 Author Share Posted January 25, 2008 WinGetProcess()And compare it with the results of Run()Wow, the idea seems good, i will try it, thank you Siao!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now