Overview
Screenshot capture enables:- Full screen screenshots
- Region-specific screenshots
- Visual verification of GUI state
- Documentation and debugging
Desktop automation requires a template with desktop support. Ensure your sandbox has desktop capabilities enabled.
Full Screen Screenshot
Capture the entire screen:- Python
- JavaScript
Region Screenshot
Capture a specific region of the screen:- Python
- JavaScript
Window Screenshot
Capture a specific window (X11 advanced feature):- Python
- JavaScript
Screenshot Workflow
Complete screenshot workflow:- Python
- JavaScript
Image Format
Screenshots are returned as PNG image bytes:- Format: PNG
- Color depth: 24-bit RGB
- Compression: PNG compression
Finding Coordinates
Use screenshots to find coordinates for mouse operations:- Python
- JavaScript
Related
- Screen Recording - Record screen activity
- CLI Reference - Command-line interface for HopX
- Window Management - Manage windows
- X11 Advanced - Advanced screenshot features
- SDK: sandbox.desktop.screenshot() - Python SDK method
Next Steps
- Learn about Screen Recording for video capture
- Explore Mouse Control to interact with GUI elements
- Review VNC Server for remote desktop access

