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:- Python
- JavaScript
Focusing Windows
Focus (activate) a window:- Python
- JavaScript
Resizing Windows
Resize a window:- Python
- JavaScript
Minimizing Windows
Minimize a window:- Python
- JavaScript
Closing Windows
Close a window:- Python
- JavaScript
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:- Python
- JavaScript
Related
- Display Management - Configure display settings
- VNC Server - Remote desktop access
- SDK: sandbox.desktop.get_windows() - Python SDK method
Next Steps
- Learn about Display Management to configure display
- Explore VNC Server for remote desktop access
- Review Screenshots for visual verification
- Display Management - Configure display settings
- Screenshots - Capture window screenshots
- CLI System Commands - System operations from CLI

