×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

WaitForString

WaitForString

WaitForString

(OP)
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.

RE: WaitForString

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,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: WaitForString

sorry,

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

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: WaitForString

(OP)
As usual Skip, you're a genius.

Thanks for the help.

RE: WaitForString

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,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close