background image
<< Searching for Text on the Screen | Web Vuser Scripts >>
<< Searching for Text on the Screen | Web Vuser Scripts >>

Reading Text from the Screen

RTE Vuser Scripts · Reading Text from the Terminal Screen
Creating Vuser Scripts
Chapter 17, page 305
Reading Text from the Screen
The TE_get_text_line function reads a line of text from the area of the screen that
you designate. The syntax of the function is:
char *TE_get_text_line ( int
col
, int
row
, int
width
, char *
text
);
This function copies a line of text from the terminal screen to a buffer
text
. The first
character in the line is defined by
col
,
row
. The column coordinate of the last
character in the line is indicated by
width
. The text from the screen is returned to
the buffer
text
. If the line contains tabs or spaces, the equivalent number of spaces
is returned.
In addition, the TE_get_cursor_position function can be used to retrieve the
current position of the cursor on the terminal screen. The TE_get_line_attribute
function returns the character formatting (for instance, bold or underline) of a line
of text.
You must manually type TE_get_text_line statements into your Vuser scripts. For
details on the syntax of the TE_get_text_line function, refer to the
LoadRunner
Online Function Reference
(available from the VuGen Help menu).
Online
Function
Reference