Skip to main content

Change-Window-Display-Status

Command Description

Change Window Display Status

Command Prototype

Window.Show(objUiElement,sShow)

Parameter Description

ParameterRequiredTypeDefaultDescription
objUiElementTruedecorator@ui""Corresponding window object; when passed as an integer, it is used as a window handle; when passed as a string, it is used as a window feature to find all matched window to operate; when passed as a UiElement object, operate the window containing it
sShowTrueenum"show"Status of a window, 'show' means showing, 'hide' means hiding, 'min' means minimizing, 'max' means maximizing, 'restore' means restoring

Demo

TracePrint "--------------------Change window display state--------------------" 
// --------------------------------------------------------
// [Remarks] Change the window display state, the demo uses IE to open Baidu
// Input parameter 1:
// objUiElement--target element
// Input parameter 2:
// sShow--display status

// Command prototype: Window.Show(objUiElement,sShow)
// --------------------------------------------------------

Window.Show(@ui"window_Baidu, you will know-User Configuration 1-MicrosoftEdge2","show")