This function returns a string containing the contents of the current host screen. The GetDisplayText method is used to get screen text. The DisplayColumns and DisplayRows properties are used to determine the current display size.
Function GetScreenText() As String
With Session
GetScreenText = .GetDisplayText(1, 1, .DisplayColumns * .DisplayRows)
End With
End Function