Skip to main content
Manage windows on the desktop: list, focus, resize, minimize, and close windows.

Overview

Window management enables:
  • Listing all windows
  • Focusing (activating) windows
  • Resizing windows
  • Minimizing windows
  • Closing windows
Desktop automation requires a template with desktop support. Ensure your sandbox has desktop capabilities enabled.

Listing Windows

Get list of all windows:

Focusing Windows

Focus (activate) a window:

Resizing Windows

Resize a window:

Minimizing Windows

Minimize a window:

Closing Windows

Close a window:

Window Information

Window objects contain:
  • id: Unique window identifier
  • title: Window title/name
  • x, y: Window position (top-left corner)
  • width, height: Window size
  • desktop: Desktop number (for multi-desktop)
  • pid: Process ID of the window

Complete Example

Complete window management workflow:

Next Steps