Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i make a script wait an indefinate amount of time?

Status
Not open for further replies.

su8z3ro

Technical User
Jul 12, 2006
5
US
Any one know how to make a script wait until a specific key is pressed and not time out after the default time? could it be done with an if/then statement? The reason is that i am writing a script to automate some functions in a form, but some fields require searching a database to find the data to input and the waitfor command timesout and continues before i am finished searching. Is there a way to keep it from timing out and have it wait for any text and a ^M?
 
You can add the FOREVER keyword to the end of a waitfor command. This will cause the script to not proceed until the string that is being looked for has been received.

 
Thanks I will try it and let you know what happens. could you post the syntax for the waitfor command as i am still very new to aspect and cant find a command reference any where.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top