Maximize or Minimize Window
Verb: showWindow
Maximizes or minimizes the window currently associated with the execution.
Syntax
showWindow [--maximize(Boolean)]
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--maximize | Maximize | Optional | Boolean | When enabled, it maximizes the window currently associated with the context. Otherwise, the window is minimized. |
Example
The Launch and Attach Window command opens a Notepad window and associates it with the execution context. With the Maximize or Minimize Window command, the window is first minimized and then maximized.
defVar --name notepadWindow --type Window
launchWindow --executablepath "C:\\Windows\\notepad.exe" notepadWindow=value
showWindow
delay --timeout 00:00:02
showWindow --maximize
delay --timeout 00:00:02
// Opens a Notepad window, minimizes and then maximizes the same window.
// Delay used for demonstration purposes.