Block reference / Device Management
Screen action
Turn the phone's screen on or off, dismiss a swipe lock, or turn the screen.
Only in
WarpX Phone
Screen action wakes the phone, puts it to sleep, unlocks a swipe lock screen, or fixes which way the screen is turned. Use it at the start of a run so the screen is on and unlocked before anything is touched, and at the end to put the phone back to sleep.
Settings
- Action
Turn the screen on, Turn the screen off, Unlock (swipe lock), which wakes the phone and dismisses the lock screen, or Rotate.
ExampleUnlock (swipe lock)- Turn towhen Action is Rotate
Auto-rotate gives the turn back to the phone's sensor. Portrait, Landscape, Portrait, upside down and Landscape, the other way switch auto-rotate off and fix the screen that way.
ExamplePortrait- 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: Wake and unlock a phone before a run, and let it sleep after
- Start
- Screen action
- Start app
- Touch
- Screen action
- Pick the phone in the toolbar's phone menu. Its lock screen is a swipe, not a PIN.
- Add a Screen action block with Action set to Unlock (swipe lock).
- Add a Start app block and the blocks for the work itself.
- End with a second Screen action block set to Turn the screen off.
- Click Run with the phone asleep: its screen comes on unlocked, and goes dark at the end.
Good to know
- Unlock (swipe lock) only dismisses a lock screen opened with a swipe. A PIN, pattern or password stays; only the person can remove those.
- Turn the screen on does nothing to a screen that is already on, so it is safe at the start of every run.
See also
- Toggle service — Switch Wi-Fi, mobile data, Bluetooth, airplane mode or location on or off.
- Start app — Open an app by its package, installing it first if the phone has not got it.
- Screenshot — Save the phone's screen as a PNG file on this computer.