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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wait for help

Status
Not open for further replies.

PurpleGecko

Programmer
Sep 30, 2004
8
US
Is there a way to wait for more then one possible text string coming across the screen and not have it time out when only one of the strings come across and not the others?

Example

MySess.waitforstring ("TEST:"),("TERM")

Waiting for either TEST or TERM



 
I use a loop to accomplish this. I am ususally trying to do a Pass/Fail query.

Do while xxxxx <> "TEST:" and xxxx <> "TERM"
doevents 'free the system resources
Loop

calculus
 
Hi,

If you look at the Extra Document for the Screen object, there is an option to specify regular expression search:

object.WaitForString("TEST:|TERM",,,,,,xRegExp)

I have not tried it before, but I will try and let you know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top