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

WaitForString 1

Status
Not open for further replies.

dvirgint

Programmer
Jun 28, 2010
85
CA
Hello all,

I've always used the WaitForString function because it improves the speed execution of the macros I write. I have recently come across a page in my system that I haven't been able to use it with because there isn't a specific string I can wait for.

My question is: is there a way to tell the WaitForString function to wait for a string in a certain location in the screen? I've tried using Sess0.screen.WaitForString ("text to wait for"), 6, 6, 6, 9, but i'm not sure it's doing what I want it to do.

I was also wondering if there is a way to have the system wait until another page is loaded?

Thanks for any suggestions.
 
hi,
Code:
Do Until Sess0.screen.WaitForString ("text to wait for")
   DoEvents
Loop
'now you have the string returned to the screen and can proceed forward

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
sorry,

Try WaitForCursor at the rest coordinates (row,col) where the cursor resides after a command is issued and data is returned.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
As usual Skip, you're a genius.

Thanks for the help.
 
This is from AttachmateHELP
Code:
object.WaitForString String [,Row [,Col [,Page]]]

Copyright 1996 - 1999, Attachmate Corporation. All rights reserved.
where Row, Col & Page are OPTIONAL

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top