RemoHop

中文

Docs

Screen and remote desktop

Every remote command has the form remohop <ID> <command>. dev is the example alias from remohop <ID> pair --name dev (see Quick start). Run remohop help <command> for the full syntax.

Capture a screenshot, of a display or a region:

remohop dev screenshot -o /tmp/screen.png
remohop dev screenshot --max-width 1280 --format jpeg --json
remohop dev screenshot -R 0,0,800,600 -o /tmp/corner.png

Show the remote screen in a browser tab and control it:

remohop dev desktop
remohop dev desktop --max-height 1080 --fps 30
remohop dev desktop --codec h264 --record meeting.mp4
remohop dev desktop --audio --display all
remohop dev desktop --bench --bench-duration 20s

The viewer listens on 127.0.0.1 behind a random URL; Ctrl-C ends it. The host needs ffmpeg with an H.264 or AV1 encoder; see troubleshooting.md.

A macOS host needs the Screen Recording permission to capture and Accessibility for input. macOS gives the screen to one capture at a time, so all sessions of a macOS host share a single capture; REMOHOP_MAC_DIRECT_CAPTURE=1 on the host turns that off (one capture per session) if the shared one misbehaves.

GUI automation

These commands drive the remote pointer and keyboard. Coordinates are pixels of the selected display as a full-size screenshot shows it, with 0,0 at the top left:

remohop dev click 412 230
remohop dev move 800 12
remohop dev type "hello world"
remohop dev press ctrl+a Delete
remohop dev scroll 0 5

If you measured coordinates in a downscaled screenshot, pass its size:

remohop dev screenshot --max-width 1280 -o s.png
remohop dev click 640 360 --scale-from 1280x720

Use -d with a monitor index or name from screenshot --list. Do not type secrets with type: the text passes through your terminal or agent transcript.