ghosthand hold-drag <x1> <y1> <x2> <y2>
| Option | Description |
--hold [ms] | How long to stay still before the drag, 100-10000 (default: 1000) |
--duration [ms] | Drag duration after the hold (default: 1000) |
--screenshot [path] | Save a screenshot after the action once the screen stops changing (default: screenshot.png); not available while locked |
--screentext | Print the OCR text of the screen after the action (x,y wxh text, after --screenshot if both); uses --language |
--language [tag] | OCR language, e.g. it-IT; en-US is always included. Env: GHOSTHAND_LANGUAGE |
--scale [n] | Image and coordinate size as a fraction of native pixels (default: screen points, 1/2 or 1/3; 1 = native). Env: GHOSTHAND_SCALE |
--wait-text [text] | After input, poll real OCR for this case-insensitive substring; never repeat input |
--timeout-ms [ms] | With --wait-text: verification deadline, 1...60000 ms (default: 5000); starts after input completes |
swipe starts moving at once, so items that need
a long press first do not move with it.key home.$ ghosthand hold-drag -l 42 60 120 300 400 --screenshot after.png
hold-drag; flags are arguments.