Block reference / UI Interaction
Press key
Press one of the phone's keys: Enter, Delete, Volume, Power and the rest.
Only in
WarpX Phone
Press key sends a key press to the phone, as if a hardware or keyboard key were pressed. Use it for Enter after typing a search, Delete to remove a character, or the volume and power keys. Back, Home and Recents have blocks of their own, Press Back, Press Home and Press Recents, so a workflow reads at a glance.
Settings
- Key
The key, by its name:
back,home,appSwitch(Recents),enter,delete(backspace),tab,escape,menu,search,power,wakeUp,sleep,volumeUp,volumeDownorcamera.Exampleenter- Delay (ms)
A pause after the block finishes, before the next block starts. Write one number such as
1000, or a range such as1000,3000for a random pause in that range on each run.Example1000
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
Hands on nothing. Leaves by its single output.
Example: Search the shop for a keyword
- Start
- Start app
- Type text
- Press key
- Pick the phone in the editor's toolbar and open the shop app's search screen.
- Add a Type text block on the search box, with the text
running shoes. - Add a Press key block and set Key to
enter. - Set Delay (ms) to
1000so the results have time to load, then press Run.
Good to know
- No agent is needed: keys go through Android's
input keyevent. With the WarpX agent installed,back,homeandappSwitchare pressed through it instead. menuis the old Menu key, which apps on Android 10 and later mostly ignore. The button people call menu, beside Home, is Recents:appSwitch, or Press Recents.powerturns the screen off when it is on and on when it is off;wakeUpandsleeponly ever turn it on or off.entersubmits only where the app listens for it, as most search boxes do. Some apps want their own search button tapped instead.
See also
- Press Back — Press the phone's Back key.
- Press Home — Press the phone's Home key.
- Press Recents — Open the recent apps, as the ☰ or ||| button beside Home does.
- Type text — Type text into a field on the phone, found by its selector or the one that has the focus.