time limit on user input ?

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
Kris Thayloo
Newbie
Posts: 10
Joined: Thu Feb 12, 2004 2:18 pm

time limit on user input ?

Post by Kris Thayloo » Thu Feb 12, 2004 2:24 pm

Is there a way to place a time limit on user input ( ask, input). I am very much in need of this feature. I need the script to continue execution if the user makes no input after some specified time. Right now there is just and indefinite wait.

Thanks

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 » Thu Feb 12, 2004 4:30 pm

Have you tried WW_TIMEOUT with WaitWindowClosed for the input window?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Kris Thayloo
Newbie
Posts: 10
Joined: Thu Feb 12, 2004 2:18 pm

re: time limit

Post by Kris Thayloo » Fri Feb 13, 2004 12:53 pm

I am trying to figure out how to use your suggestion Mr Hansen. ...but the following thoughts came to mind.

If a wait_window closed statement were to be placed before the input/ask, then this window will not be existence for the wait statement to reference.

If it were to be placed after the input/ask point then it would not be executed until that window is satisfied and allows the script to move on.
This is the very problem I am faced trying to solve...making the execution continue if there is no user input after some time period.

Lumumba

Post by Lumumba » Fri Feb 13, 2004 9:53 pm

Nothing new (you'll find it in the forum, promised!)
It needs two scripts to solve that issue (b.scp started within a.scp)

a.scp
Macro>c:\b.scp
Input>...
.
.
.

b.scp
Wait>120
SetFocus>Input
Press ALT
Press F4
Release ALT

Guest

user input time limit

Post by Guest » Tue Feb 17, 2004 6:08 pm

...It appears that the "b.scp" has to be a "b.exe".

eg.
macro>b.scp

script continue


I am finding that the macro>b.scp has to complete execution before the script continues. If I do a run>msched.exe b.scp ... things become chaotic with controls when two instances of macro scheduler are running.

I'll have to get the pro version of macro scheduler to make the exe and see if this provides a work-around.

Thanks for your' suggestions so far

Kris Thayloo

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 Feb 17, 2004 7:00 pm

Perhaps cast a vote in a request I made almost a year ago (April 2003):

http://www.mjtnet.com/forum/viewtopic.php?p=1643#1643
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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