Hello!
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!
Nico
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!
Nico