Get_Screen_Text_Length

Get the specified amount of text on the screen. The string will be truncated if it is longer than the number of characters specified. The top row is row 1; the left-most column is 1.

Parameters

Row

The row of text to return.

Column

The column of text to return.

Maximum Length

The maximum number of characters to get from the screen.

Format

Get_Screen_Text_Length (Row, Column, Maximum Length)

Return Value

Returns the text starting at the specified screen position up to the right side of the display.

Example

Script(Get_Screen_Text_Length_Test)
String(strScreenText)
Number(nRow)
Number(nColumn)
Number(nMaxCharacters)
Activate(From_Menu)
nRow = Ask_Number("Enter row, top row is 1", "Get_Screen_Text_Test", 1, 99, 1)
nColumn = Ask_Number("Enter column, top column is 1", "Get_Screen_Text_Test", 1, 99, 1)
nMaxCharacters = Ask_Number("Enter maximum text length", "Get_Screen_Text_Test", 1, 99, 25)
strScreenText = Get_Screen_Text_Length(nRow, nColumn, nMaxCharacters)
Ask_OK(strScreenText, "ScreenText")
Return

See Also

Speech_To_Text, Search_Screen, Get_Field_Index, Get_Field_Row, Get_Screen_Text, Get_Screen_Text_Columns, Get_Screen_Rows, Get_Position_Row, String_Equal, Ask_String

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal