Combining WaitWindowClosed and Dialog Boxes?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
dbish
Junior Coder
Posts: 49
Joined: Wed Jan 08, 2003 8:38 am

Combining WaitWindowClosed and Dialog Boxes?

Post by dbish » Tue Sep 23, 2003 6:16 pm

I have a script that goes to multiple locations on the Internet and harvests data. Often, the websites will be non-responsive so the script will stop and report the error. I will try it later and tell it to pickup whereever it left off. To do this, I created a dialog box with 4 possible locations to begin running the script. This dialog box loads as soon as script runs and requires user action. All this works great when I am around to push the button.

Now, I want to schedule the script to run in the middle of the night. What I am looking for is some way to Wait 60 seconds for user input and, if none is coming, start the beginning of the processing. Something like a WaitWindowClosed mechanism whereby a result code is generated that Msched can see and know to close dialog box and process the script.

I know that I could make a copy of the script for unattended usage without the dialog box but would like to try the WWC approach first since the script changes over time and I don't want to have to remember to fix both versions.

Any suggestions?

Dave

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Sep 23, 2003 7:18 pm

I agree with this idea. I submitted this as a request last April, and added a Poll in June.

:idea: Perhaps you can cast a vote at:
http://www.mjtnet.com/usergroup/viewtop ... nt+request

I am not sure that my idea of WW_TIMEOUT actually works on the Dialog box. I never actually tried it, but it sounded good in theory. The If>Result= option would not work unless the window timed out. that is the basic problem.

dbish
Junior Coder
Posts: 49
Joined: Wed Jan 08, 2003 8:38 am

Reply to Bob hansen - Voted in your poll

Post by dbish » Tue Sep 23, 2003 11:06 pm

Bob,

Thanks for the reply. I tried the two workarounds in your old post- neither worked. I think an improvement to MSched is the only way around this (of course I may have not tried the workarounds in all forms possible - I did try many different sequences without luck).

Voted in yoir poll - Hope Marcus catches this thread.

Dave

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts