Feature

Desktop Automation

Full cloud desktop with VNC access. Control mouse, keyboard, windows — automate any GUI application programmatically.

desktop.py
1from hopx_ai import Sandbox
2
3sandbox = Sandbox.create(template="desktop")
4
5# Start VNC server
6vnc = sandbox.desktop.start_vnc()
7print(f"VNC URL: {vnc.url}")
8
9# Take a screenshot
10screenshot = sandbox.desktop.screenshot()
11screenshot.save("desktop.png")
12
13# Mouse operations
14sandbox.desktop.mouse_move(500, 300)
15sandbox.desktop.mouse_click()
16sandbox.desktop.mouse_double_click()
17sandbox.desktop.mouse_scroll(delta=-3)
18
19# Keyboard operations
20sandbox.desktop.type_text("Hello, World!")
21sandbox.desktop.key_press("Enter")
22sandbox.desktop.hotkey("Ctrl", "S")
23
24# Window management
25windows = sandbox.desktop.list_windows()
26for w in windows:
27    print(f"{w.title} - {w.x},{w.y}")
28
29# Screen recording
30sandbox.desktop.start_recording()
31# ... do stuff ...
32video = sandbox.desktop.stop_recording()
33video.save("session.mp4")

VNC Access

Full graphical desktop via VNC/noVNC streaming

Screenshots

Capture desktop screenshots programmatically

Mouse Control

Click, move, scroll — automate any UI

Keyboard Input

Send keystrokes and keyboard shortcuts

Automate Any Desktop

Cloud desktop with full programmatic control. Perfect for RPA and browser automation.