ScriptTap
Delay Until

Command video guide

Delay Until

Delay Until pauses the current script until a chosen time or condition is reached. Use it when the next command depends on a particular state, rather than a fixed amount of elapsed time. This Overview tours the native editor without running a demonstration.

Create and name a new script, open Timing, and manually drag Delay Until into the live script. Open the placed command and choose its mode before filling its fields. Switching modes can reset settings that no longer apply.

  • Time: enter hours, minutes and seconds. Twelve-hour entry includes AM/PM; 24-hour entry uses hours 0–23. With Date OFF, a clock time already passed waits until its next occurrence tomorrow. With Date ON, supply month/day/year too; an explicit past date/time adds no wait.
  • Image: wait until any selected asset matches inside the selected area at the required Confidence. One matching asset is enough when several are selected. This tour reuses ScriptTap Outline, not a newly created crop. Tap Area text for manual coordinates, or use its selector when configuring a real screen target. See Asset Creation for cropping and ImgFind for image-matching setup.
  • UI Element: wait for an accessible element matching Query. Target and Match choose the comparison, Nth selects the matching occurrence, Package narrows the app, and Enabled/Clickable/Visible filters narrow eligible elements. See UIFind.
  • Pixel: wait for Color at one X/Y coordinate within Confidence. It checks that fixed point, not a whole-area search. See PixelFind for matching concepts and Get Pixel Color for sampling.
  • Active App: wait for the selected installed app to become the foreground app. Select app fills Package and Label. This does not launch the app, and foreground status does not mean loading is finished.
  • Variable: wait for a stored value to satisfy a typed condition. Use a complete variable name such as i1, with a Value Type that agrees with the stored value.
Variable condition types
Value TypeCondition
Integer / DecimalNumeric =, <>, >, >=, <, <= comparison against a supported literal or typed variable.
BooleanEquals True or False.
StringContains, Exact, or Regex against text or a supported String-variable reference.
HexEquals a color value or Hex-variable reference; it does not sample the screen.
TimeCompare a stored Time with a supported Time value; distinct from the scheduled Time mode.

A Variable wait does not execute later commands while waiting. If the condition is not already true, another running action must be able to update the watched value. Otherwise it can wait indefinitely.

The five condition modes use Check Every, in milliseconds, for polling frequency. Shorter intervals can react sooner but require more work. It is not a timeout; use Stop to end a wait whose condition never becomes true. The saved editor-only example ends on Active App → Play Store with Check Every 200 ms, but this Overview never presses Play.

For the complete working Google Play search example, use the preserved Command Guide tab. It waits for Play Store, includes loading time, then taps Search and types ScriptTap. The shared Asset Creation tab remains available. Other wait modes are explained here without additional runtime demonstrations, as requested.

Overview

Step-by-step guide

  1. Step 01

    Delay Until pauses the current script until a chosen time or condition is reached. Unlike a fixed Delay, it waits for the thing your next command depends on. This Overview explains all six modes without running a demonstration.

    Delay Until: Overview step 1: Delay Until pauses the current script until a chosen time or condition is reached. Unlike a fixed Delay, it waits for the thing your next command depends on. This Overview explains all six modes without running a demonstration.
  2. Step 02

    Create a new script and pick a name. This keeps the existing examples unchanged while we inspect the command's settings.

    Delay Until: Overview step 2: Create a new script and pick a name. This keeps the existing examples unchanged while we inspect the command's settings.
  3. Step 03

    Open Timing, then drag Delay Until into the live script. Open the placed command to choose how it should wait.

    Delay Until: Overview step 3: Open Timing, then drag Delay Until into the live script. Open the placed command to choose how it should wait.
  4. Step 04

    The Mode menu contains Time, Image, UI Element, Pixel, Active App and Variable. Choose the mode before completing its fields; switching modes can reset settings that no longer apply.

    Delay Until: Overview step 4: The Mode menu contains Time, Image, UI Element, Pixel, Active App and Variable. Choose the mode before completing its fields; switching modes can reset settings that no longer apply.
  5. Step 05

    Time waits for a clock time. Use hours, minutes and seconds, with A M or P M in twelve-hour mode. Turn twenty-four-hour entry on to use hours from zero through twenty-three instead. Without a date, a time that has already passed means its next occurrence tomorrow.

    Delay Until: Overview step 5: Time waits for a clock time. Use hours, minutes and seconds, with A M or P M in twelve-hour mode. Turn twenty-four-hour entry on to use hours from zero through twenty-three instead. Without a date, a time that has already passed means its next occurrence tomorrow.
  6. Step 06

    Enable Date when you mean a particular calendar day, then supply month, day and year as well as the time. An explicit date and time already in the past adds no waiting time. Check both the date and the clock format before saving.

    Delay Until: Overview step 6: Enable Date when you mean a particular calendar day, then supply month, day and year as well as the time. An explicit date and time already in the past adds no waiting time. Check both the date and the clock format before saving.
  7. Step 07

    Image waits until a selected picture can be matched inside the chosen screen area. Select an existing asset, choose the area, and set Confidence. With several assets, one matching asset is enough. We can reuse the ScriptTap Outline sample rather than create another asset.

    Delay Until: Overview step 7: Image waits until a selected picture can be matched inside the chosen screen area. Select an existing asset, choose the area, and set Confidence. With several assets, one matching asset is enough. We can reuse the ScriptTap Outline sample rather than create another asset.
  8. Step 08

    Tap the Area text to enter coordinates, or use its selector when setting up a real screen target. Use the shared Asset Creation video for cropping, and the Image Find guide for image-matching setup. This tour does not run an image search.

    Delay Until: Overview step 8: Tap the Area text to enter coordinates, or use its selector when setting up a real screen target. Use the shared Asset Creation video for cropping, and the Image Find guide for image-matching setup. This tour does not run an image search.
  9. Step 09

    UI Element waits for an accessible interface element that matches your query. Target and Match control what is compared; Nth chooses the matching occurrence. Package narrows the app, while Enabled, Clickable and Visible filters narrow the element. Refer to the U I Find guide for detailed setup.

    Delay Until: Overview step 9: UI Element waits for an accessible interface element that matches your query. Target and Match control what is compared; Nth chooses the matching occurrence. Package narrows the app, while Enabled, Clickable and Visible filters narrow the element. Refer to the U I Find guide for detailed setup.
  10. Step 10

    Pixel waits for a specified color at one X and Y coordinate, within the chosen Confidence. It checks that fixed point; it does not search a whole area for the color. Refer to the Pixel Find guide for color-matching concepts and Get Pixel Color for sampling a screen color.

    Delay Until: Overview step 10: Pixel waits for a specified color at one X and Y coordinate, within the chosen Confidence. It checks that fixed point; it does not search a whole area for the color. Refer to the Pixel Find guide for color-matching concepts and Get Pixel Color for sampling a screen color.
  11. Step 11

    Active App waits until the selected app becomes the foreground app. Use Select app to choose an installed application; its package identifies the target and its label makes it readable. Selecting an app here does not launch it, and becoming active does not guarantee that its screen has finished loading.

    Delay Until: Overview step 11: Active App waits until the selected app becomes the foreground app. Use Select app to choose an installed application; its package identifies the target and its label makes it readable. Selecting an app here does not launch it, and becoming active does not guarantee that its screen has finished loading.
  12. Step 12

    Variable waits until a stored value satisfies a condition. Choose its Value Type and enter the variable name. For example, i1 is a complete variable name, not just the letter i. Select a type that agrees with the value actually stored in that variable.

    Delay Until: Overview step 12: Variable waits until a stored value satisfies a condition. Choose its Value Type and enter the variable name. For example, i1 is a complete variable name, not just the letter i. Select a type that agrees with the value actually stored in that variable.
  13. Step 13

    Integer and Decimal use a numeric comparison: equal, not equal, less than, greater than, or an inclusive comparison. The Value field can use the supported literal or another typed variable. Choose the relation that describes the state you need, not an arbitrary waiting duration.

    Delay Until: Overview step 13: Integer and Decimal use a numeric comparison: equal, not equal, less than, greater than, or an inclusive comparison. The Value field can use the supported literal or another typed variable. Choose the relation that describes the state you need, not an arbitrary waiting duration.
  14. Step 14

    Boolean waits for True or False. Select the required value in Equals. It is useful when another running action sets a completion flag.

    Delay Until: Overview step 14: Boolean waits for True or False. Select the required value in Equals. It is useful when another running action sets a completion flag.
  15. Step 15

    String compares text using Contains, Exact or Regex. Contains looks for a piece of text; Exact requires the complete text to match; Regex applies a regular-expression pattern. Enter the comparison text or the supported String-variable reference in Value.

    Delay Until: Overview step 15: String compares text using Contains, Exact or Regex. Contains looks for a piece of text; Exact requires the complete text to match; Regex applies a regular-expression pattern. Enter the comparison text or the supported String-variable reference in Value.
  16. Step 16

    Hex uses equality with a color value or a Hex-variable reference. This compares the stored variable; unlike Pixel mode, it does not read a screen coordinate for you.

    Delay Until: Overview step 16: Hex uses equality with a color value or a Hex-variable reference. This compares the stored variable; unlike Pixel mode, it does not read a screen coordinate for you.
  17. Step 17

    The Time value type compares a stored Time using the chosen relation. Use valid Time values in the expected format. This is a variable comparison, separate from Time mode's scheduled clock-and-date wait.

    Delay Until: Overview step 17: The Time value type compares a stored Time using the chosen relation. Use valid Time values in the expected format. This is a variable comparison, separate from Time mode's scheduled clock-and-date wait.
  18. Step 18

    A variable wait does not execute commands placed after it while waiting. If the condition is not already true, another running action must be able to change the watched value. Otherwise, the script can remain waiting indefinitely.

    Delay Until: Overview step 18: A variable wait does not execute commands placed after it while waiting. If the condition is not already true, another running action must be able to change the watched value. Otherwise, the script can remain waiting indefinitely.
  19. Step 19

    The five condition modes use Check Every, in milliseconds, to control how often the condition is checked. A shorter interval can react sooner but requires more work. This is not a timeout: if the condition never becomes true, use Stop to end the wait.

    Delay Until: Overview step 19: The five condition modes use Check Every, in milliseconds, to control how often the condition is checked. A shorter interval can react sooner but requires more work. This is not a timeout: if the condition never becomes true, use Stop to end the wait.
  20. Step 20

    For the complete Google Play example, open the Command Guide tab. It waits for Play Store, allows time for the app to load, then taps Search and types ScriptTap. Use the Asset Creation tab when you need a reusable image sample.

    Delay Until: Overview step 20: For the complete Google Play example, open the Command Guide tab. It waits for Play Store, allows time for the app to load, then taps Search and types ScriptTap. Use the Asset Creation tab when you need a reusable image sample.