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!

CASL: using winstring and track statements

Status
Not open for further replies.

cloudstrife11

Programmer
Nov 14, 2008
5
CA
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?
 
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

[small]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[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top