Skip to main content


Command Description

Create an object of the screen writer to show the words

Command Prototype

objWindow = PrintToScreen.CreateWindow(objRect,bResize)

Parameter Description

objRectTruedictionary{"width": 0,"height": 0,"x": 0,"y": 0,"resolution": {"width": 0, "height": 0}}Create an object of the screen writer to show the words
bResizeTruebooleanTrueWhether to adjust the writer's screen area as the display resolution changes


objWindow,The variable used to save the output of the command.


TracePrint("----------------------------Create screen writing object ----------------- ----------") 
//[Remarks] Create a screen-writing window object to display text.
//Input parameter 1:
// objRect--screen writing area. Note: Create a screenwriting window object to display text
// bResize--Adaptive. Note: Whether to adjust the position and size of the display adaptively to the resolution
//out parameters:
// objWindow--The variable to which the output of the function call is saved.
//Command prototype: objWindow = PrintToScreen.CreateWindow(objRect,bResize)
objWindow = PrintToScreen.CreateWindow({"width": 1919,"height": 1079,"x": 0,"y": 0,"resolution": {"width":1920,"height":1080}},true)