primus has asked for the wisdom of the Perl Monks concerning the following question:
i am using Win32::GuiTest to do some automation for a third party application.
within the perl script, i run the third-party app, and use Win32::GuiTest to click a few options and fill in some fields, and then click a "process" button in the third-party app, which process some data for a good 8 minutes.
once that data is finished processing a message box pops up that says, "complete".
my question is, how can i make my perl script wait for that message box to pop up, and when it does grab focus to that and click "OK"?
i tried putting a while loop to wait for it, but doing so slows my computer down to a crawl, and perl takes 99% cpu usage...
typically without waiting for the msg box, the perl script will terminate once it click the "process" button, but i need it to like go to sleep or something, until the msg box appears.
any thoughts?
thanks monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::GuiTest waiting for a window
by kelan (Deacon) on Jan 12, 2004 at 18:35 UTC | |
by primus (Scribe) on Jan 12, 2004 at 19:27 UTC |