Contains information about a specific screen and provides methods to let you manipulate that information.
Determines whether or not the displayed screen is the current screen.
object.Current
Boolean.
Read-only.
This example returns TRUE if the displayed screen is the current one; otherwise, FALSE.
set srv = CreateObject ("ucx:Server")
set screens = srv.Screens
Screens.Reset
While(Screens.HasMoreElements=TRUE)
set screen = Screens.Next
If(Screen.Current=TRUE) Then
Print("Current screen's name is:" & Screen.Name)
End if
Wend
Returns the name of the screen.
object.Name
String.
Read-only.
This example returns the name of the screen.
set srv = CreateObject ("ucx:Server")
set screens = srv.Screens
Screens.Reset
While(Screens.HasMoreElements=TRUE)
set screen = Screens.Next
Print("Screen name is:" & Screen.Name)
Wend
Displays the specified text on the screen.
object.Text
String.
Read-only.
This example displays the text of the screen.
set srv = CreateObject("ucx:Server")
set screens = srv.Screens
set screen = Screens.CurrentScreen
print("Text on current Screen:" & Screen.Text)
Returns the text of the screen with color information.
object.Read()
None.
Byte[ ].
This example returns the text of the screen with color information.
set srv = createobject ("ucx:Server")
set screens = srv.Screens
set screen=Screens.CurrentScreen
ScreenBUF = Screen.Read
set screen = Screens.Next
Screen.Write(ScreenBUF)
Writes the text and color information in the buffer to the screen.
object.Write(
buffer As byte[])
The buffer to be displayed on the screen.
Boolean. Returns TRUE if successful; otherwise, FALSE.
This example writes the text and color information in the buffer into the screen.
set srv = createobject ("ucx:Server")
set screens = srv.Screens
set screen=Screens.CurrentScreen
ScreenBUF = Screen.Read
set screen = Screens.Next
Screen.Write(ScreenBUF)