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.
| Value Type | Condition |
|---|---|
| Integer / Decimal | Numeric =, <>, >, >=, <, <= comparison against a supported literal or typed variable. |
| Boolean | Equals True or False. |
| String | Contains, Exact, or Regex against text or a supported String-variable reference. |
| Hex | Equals a color value or Hex-variable reference; it does not sample the screen. |
| Time | Compare 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
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.
Step 02 Create a new script and pick a name. This keeps the existing examples unchanged while we inspect the command's settings.
Step 03 Open Timing, then drag Delay Until into the live script. Open the placed command to choose how it should wait.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Wait until a clock time or a condition is reached before running the next command. This guide explains Time, Image, UI Element, Pixel, Variable, and Active App, then demonstrates Active App with Google Play.
For Image, UI Element and Pixel setups, refer to the ImgFind(), UIFind() and PixelFind() command guides.
The demo waits for Google Play, uses Delay 2000 ms for opening, then taps Search, focuses the search bar and types ScriptTap. Two additional one-second Delays let the Search tab and text field settle on this device. Match coordinates and timing to your own device.
Watch the walkthrough
Step-by-step guide
Step 01 Delay Until pauses your script until a chosen time or condition is reached. Use it when the next action depends on something being ready, rather than a fixed amount of time passing.
Step 02 Open Scripts. Tap New Script, then choose Blank Script.
Step 03 Open its three-dot menu and choose Rename. Pick a name, then tap OK.
Step 04 Select your new script and open the Script Editor. Collapse the extra overlay controls.
Step 05 Expand Timing and drag Delay Until into the script. Double-tap its frame to open the settings.
Step 06 Time waits for a clock time on your device. Enter the hour, minute, and second. Use AM or PM, or turn on twenty-four-hour time. Without a date, a time that has already passed waits until tomorrow.
Step 07 Turn on Date to choose a specific month, day, and year as well. Use a valid calendar date. If that dated time has already passed, the command continues immediately.
Step 08 Image waits until a saved image appears inside the selected screen area. Choose at least one image asset, the search area, and the match confidence. It waits for a match; it does not tap the image.
Step 09 UI Element waits until an app exposes a matching accessibility element. You can match text or another element property, choose Exact, Contains, or Regex, and narrow the result with an occurrence number, package, and element filters. This is not OCR.
Step 10 Pixel waits until the color at one screen coordinate matches your target. Set the X and Y position, a Hex color or an earlier Hex variable, and the confidence.
Step 11 For image, pixel, and UI element setup details, refer to the Image Find, Pixel Find, and UI Find command guides.
Step 12 Variable waits for a condition on a variable defined earlier in the script. Choose its name, value type, and the comparison target. The supported types are Boolean, Integer, Decimal, String, Hex, and Time.
Step 13 Boolean and Hex use equality. Integer, Decimal, and Time also support not equal, greater than, less than, and their inclusive comparisons. Choose the comparison that must become true.
Step 14 For String values, Exact matches the whole text, Contains looks for part of it, and Regex uses a pattern. Delay Until only checks the condition. It does not change the variable or execute the commands that follow while it is waiting.
Step 15 Every mode except Time has Check Every, in milliseconds. This controls the pause between checks, not a maximum waiting time. Use a whole number from zero to sixty thousand. Zero adds no pause. Make sure the condition can become true, or use Stop to end the wait.
Step 16 In this demo, we will be using Active App. This mode waits until a specific app becomes active before continuing to the next command. It does not open the app for you. Switching modes clears the settings for the mode you leave.
Step 17 Tap Select app and choose Google Play. The picker fills its package and label. The package identifies the app; the label is its readable name.
Step 18 Set Check Every to two hundred milliseconds, then tap OK to save.
Step 19 Drag Delay below Delay Until. Double-tap it and enter two thousand milliseconds. This gives Google Play two seconds to finish opening after it becomes active.
Step 20 Expand Actions and drag a Tap below Delay. Double-tap its frame and enter the coordinates of Google Play's Search icon at the bottom. Tap OK to save.
Step 21 Drag another Tap below it. Set this one to the search bar at the top, then tap OK. Use coordinates that match your own device layout.
Step 22 Drag a Delay between the two taps and set it to one thousand milliseconds. This gives the Search tab time to appear before the next tap.
Step 23 Add one more Delay after the second tap, also set to one thousand milliseconds. This lets the search field gain focus before Text Type runs.
Step 24 Drag Text Type below the final delay. Enter ScriptTap for this example and leave Use Variable off. Tap OK to save. This types the search text into the focused field.
Step 25 The sequence waits for Google Play, gives it two seconds to open, then uses two taps and short pauses to reach the search field and type ScriptTap. Delay Until keeps the later commands from running before the right app is active.
Step 26 Close the editor. When the script is complete, simply use the Play button in the main overlay.
Step 27 Google Play is not active yet, so the script waits here. Now open Google Play. Once it becomes active, the script continues.
Step 28 After the wait, the script opens Search, focuses its search bar, and types ScriptTap. The completed search text is the visible result. The script stops automatically.
Create the image asset once, then select it in this command. This is the same shared video used by the other image-matching guides.