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.

See Also

  • Attach Window
  • Cancel Token Source
  • Clear Cache
  • Click
  • Click on Cell
  • Click on Menu
  • Click on Value
  • Close Window
  • Control Screenshot
  • Count Windows
  • Expand Tree
  • Find Window
  • Find Windows
  • Focus
  • Focus Window
  • Get Barcode
  • Get Bounds
  • Get Cell Value
  • Get Control
  • Get Image Grid
  • Get Interval
  • Get Options
  • Get Table
  • Get Table Information
  • Get Tree Nodes
  • Get Value
  • Handle Open File Dialog
  • Handle Save File Dialog
  • Launch and Attach Window
  • Launch or Attach Window
  • Launch SAP Application
  • Map Image Grid
  • Offset Value
  • SAP Transaction
  • Screenshot Window
  • Select Row
  • Select Tab
  • Set Execution Throttling
  • Set Grid Value
  • Set Value
  • Update Window
  • Verify Enabled
  • Verify If Visible
  • Wait and Close Security Window
  • Wait Busy Window
  • Wait Control
  • Wait for Control to Enable
  • Wait for Window to Appear
  • Watch and Close Window
  • Watch and Select Client Certificate
  • Watch and Set Credentials in Browser