<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > Window Operations |
MiniRobotLanguage (MRL)
CLW. Command
Close Window
Intention
This command will close the last localized window. If a Window-Handle is specified as parameter, this window will be closed. It will close Top-windows or child-windows via direct-engine.
Syntax
CLW.[P1]
Parameter Explanation
P1 - First Parameter is a Variable, local or Global. If omitted the actual window is been close.
Example
'*************************************
' Example 1
'*************************************
' Using CLW. without parameter
DBM.2
STW.t|TestApp
' The next line will close the Window.
CLW.
DMP.
END.
'*************************************
' Example 2
'*************************************
' Using CLW. using a window-handle as parameter
DBM.2
STW.t|TestApp
HTV.$$HWN
' You can work with other windows here
' We vlosethe window by its handle
CLW.$$HWN
DMP.
END.
Remarks
Limitations:
This command has no "compatible engine" equivalent.
It will always directly close the window. It does not need a mouse or a desktop.
See also: