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

New Screen load event

Status
Not open for further replies.

arbucklethwaite

Programmer
Jun 7, 2004
2
GB
Hi,

Hoping somebody can help.

I want to read a screen each time a new one is displayed looking for some fixed text on the screen and if it is found run some code.

Does Extra fire some sort of event each time a new screen is displayed which can then kick off or restart a macro?

Thanks

Andy
 
There's not an event that fires to do this. You'd have to fire the macro manually.

I suppose, depending on your version of Extra, you could have it running in the background all the time waiting for it's time in the sun. I'd say this would be pretty sketchy at best using Extra Basic code.

What exactly are you trying to accomplish and you can probably get more direction.

calculus
 
Andy,

I'm not sure what version of extra your running, but in the version I'm using (2000a) here's how I would do what you've described.

1. Right click somewhere in your session window.

2. From there click "Settings"

3. In the list box to the left select "HotSpots"

4. Choose the "Assignments Tab"

5. Select a Scheme or create your own.

6. Add a Hotspot. Define string you want to launch your specific macro, where it is and anything else (leading/trailing space, Case sensitive. If you want it to auto fire the macro whenever the string appears select auto invoke (if not it will be highlighted text and work as a pushbutton.

7. select the "Action" tab to tell your hotspot what you want it to do. In your case tell it which macro to run.

8. Save your scheme and apply it and your ready to go.

Note: you can do alot more with a hotspot than just macros look through all the catagories and you'll see what I mean.

Hope it helps. Happy Coding
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top