ghosthand double-tap <x> <y> ghosthand double-tap --text <text>
| Option | Description |
--text [text] | Tap the text line that contains this (case-insensitive; an exact line wins) |
--index [n] | With --text: pick the nth match, top to bottom (1-based) |
--language [tag] | OCR language, e.g. it-IT; en-US is always included. Env: GHOSTHAND_LANGUAGE |
--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 |
--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 |
ghosthand hold. Move an item after a long
press: ghosthand hold-drag.
First use: pair the Mac from iPhone Settings > Bluetooth (tap the Mac's name, then
Pair); the command waits for it. Each tap turns AssistiveTouch on over USB if off.
A paired iPhone reconnects in about 2 s after a daemon start.$ ghosthand double-tap -l 42 207 448 --screenshot after.png $ ghosthand double-tap -l 42 --text "General" --screentext
double-tap; flags are arguments.