×
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

CASL: using winstring and track statements

CASL: using winstring and track statements

CASL: using winstring and track statements

(OP)
Is it possible to use the track statement and winsring together (using CASL language with Attachmate Accessory Manager)?

I want the macro to run in the background while the user goes about his work.

I want the macro to constantly be tracking for a specific winstring (the page indicator in the top left corner) and when the user comes to this page, an action can be taken.

Can anyone help?

RE: CASL: using winstring and track statements

As your page indicator is the first thing to paint to the screen the location is irrelevant.  Replace "page indicator text here" with the literal your watching for and the following should work.


x = 1
while x = 1
    watch for
        "page indicator text here": alert "do something",ok:end
    endwatch
wend

Sometimes you gotta leave your zone of safety. You have to manufacture Inspirado. You gotta get out of the apartment. You've got to run with the wolves. You've got to dive into the ocean and fight with the sharks. Or just treat yourself to a delicious hot fudge sundae........ with nuts. - Jack Black

RE: CASL: using winstring and track statements

(OP)
That is EXACTLY what I was looking for...thanks

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