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

Get each line LIVE as it appears on screen

Get each line LIVE as it appears on screen

Get each line LIVE as it appears on screen


I'm using Attachmate Extra! X-Treme to write a macro.

This macro is intended to get some lines from screen, parse one at time and then do something with the info extracted.
My question is about how to get each line as it appears on the screen, since the output I'm chasing to be processed has no pages or stops, it just return an undefined quantity of lines based on the args the command issued receive without stopping on each "page". Imagine something like doing a "ls" command on a linux terminal... it will return as many lines as files are in the current path, but without paging or stopping on each screen.

As far as I read on the help, all methods for "Screen" object works based on the actual screen and positions, but always treating the screen as an static matrix of rows and cols, what I need is to process each line from the output as it appears on the screen, LIVE.
That would be the Ideal solution, another workaround I thougth is to capture the whole output until it stops, store it temporally somewhere and then process it, but I don't know how to do that either... :(

I would really like to already have some code to post (besides establishing the session, sending keys and getting my output), but when I started looking for the appropriate method I immediately get stuck rigth there...

Hope you can help or clarify me if I'm wrong on my understanding about the methods!

Thanks in advance!

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