Block reference / Device Management

Screen action

Turn the phone's screen on or off, dismiss a swipe lock, or turn the screen.

Only inWarpX 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.

Screen action set to Unlock (swipe lock) wakes the phone and dismisses its swipe lock screen.
The Screen action block's settings, filled in as in the example below.

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 as 1000,3000 for 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

  1. Start
  2. Screen action
  3. Start app
  4. Touch
  5. Screen action
Where Screen action sits in the example workflow.
  1. Pick the phone in the toolbar's phone menu. Its lock screen is a swipe, not a PIN.
  2. Add a Screen action block with Action set to Unlock (swipe lock).
  3. Add a Start app block and the blocks for the work itself.
  4. End with a second Screen action block set to Turn the screen off.
  5. 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.