Block reference / Device Management
Set clipboard
Put text on the phone's clipboard, ready for an app's Paste.
Only in
WarpX Phone
Set clipboard puts text on the phone's clipboard without touching the screen. Use it for a field that refuses typed text, for a long caption an app would rather have pasted, or to hand a link to an app that reads the clipboard when it opens. Any language and emoji work.
Settings
- Text
The unlabelled box: the text to put on the clipboard, up to 100,000 characters. It can hold references such as
{{loopData.caption}}. Empty, the clipboard is cleared to empty text.Example{{loopData.caption}}- Delay (ms)
A wait after the block finishes, before the next one starts. One number such as
1000, or a range such as1000,3000for a random wait in that range on each run.Example0
Every block also has the shared block settings — a description, Disable block and what to do on an error. Fields that take text accept data from earlier blocks.
What it hands on
Writes nothing and hands nothing on.
Example: Paste a caption from a table into an app
- Start
- Loop data
- Set clipboard
- Touch
- Touch
- Pick the phone in the toolbar's phone menu, and fill a column
captionunder Table. - Add a Loop data block over the table, with Loop ID
caption. - Add a Set clipboard block whose text is
{{loopData.caption}}. - Add a Touch block with Touch type Hold on the app's caption field, then a Touch block on the Paste that appears.
- Click Run and watch each caption appear in the field.
Good to know
- It replaces what the clipboard held.
- It needs the screen-mirroring server WarpX Phone ships with; a build without it fails with
SCRCPY_UNAVAILABLE.
See also
- Get clipboard — Read what the phone's clipboard holds into a variable or the table.
- Touch — Tap, hold or double-tap an element on the phone's screen, or a point on it.