Skip to main content

Close-Window

Command Description

Close the writing screen window that is being displayed

Command Prototype

PrintToScreen.CloseWindow(objWindow)

Parameter Description

ParameterRequiredTypeDefaultDescription
objWindowTrueexpressionobjWindowScreen writer, the output of the command “Create Screen Writer”

Demo

TracePrint("--------------------------Close the window------------------- --------") 
//-------------------------------------------------------------------------------
//【Remarks】Close the screen writing window that is being displayed. (Need to be used together with the command to create a screen-writing object)
//Input parameter 1:
// objWindow--screen writing window object. Note: The screenwriting window object, the output of the command to create the screenwriting object
//out parameters:
// None
//Command prototype: PrintToScreen.CloseWindow(objWindow)
PrintToScreen.CloseWindow (objWindow)