ScriptTap
Visual Trigger

Command video guide

Visual Trigger

Visual Trigger waits for a visual position condition, then taps the selected target. Use it when a fixed delay does not reliably identify the right moment. This Overview shows the settings without Test or Play; the practical tabs build short working examples.

Exactly two of three retained slots must be enabled. Mode offers OR, AND and XOR: any, all, or exactly one accepted comparison. Our two-trigger alignment example gives the same outcome with all three. Disabling a slot keeps its settings; changing Pixel Line/Asset clears the outgoing source settings.

Delay waits after the condition is met and before the tap. Timeout limits waiting; zero removes that limit. Stable Frames requires consecutive matching frames. Press is the tap's hold duration. Timing values are literal numbers, not coordinate-variable fields.

With Set Tap Coordinates ON, enter a fixed X/Y location or earlier Integer variable references. With it OFF, the final tap uses Trigger 2's matched image center, requiring Trigger 2 to be enabled and use Asset. Pixel Line examples require a fixed target.

Horizontal lines compare X positions; vertical lines compare Y positions. Changing orientation resets coordinates, so choose it first. Sample Count 0 chooses sampling automatically. Hit Radius allows a positional difference in pixels. Pixel Line uses a chosen hexadecimal color and separate color confidence. Each Frame tracks current color matches; Once on Start retains the initial matches as a reference.

Asset uses a saved image with its own image confidence. Expand its heading to see the selected image and its removal control. The ROI bounds limit the image search; keep them relevant and exclude competing look-alikes. Asset Tip Point selects the image point used for position comparison, not the final image-center tap. Reuse the same genuine ScriptTap icon asset and the shared Asset Creation guide instead of cropping it again.

Watch the walkthrough

Step-by-step guide

  1. Step 01

    Visual Trigger waits for a visual position condition, then taps the selected target. It can compare colored pixels along lines or locate an image asset. This overview shows the settings without running a demonstration.

    Visual Trigger step 1: Visual Trigger waits for a visual position condition, then taps the selected target. It can compare colored pixels along lines or locate an image asset. This overview shows the settings without running a demonstration.
  2. Step 02

    Create a blank script. In this library, the new script appears at the end, so scroll down to find it. Open its three-dot menu and choose Rename. Replace the default name with a clear name for your guide, then save it. Open the renamed script. We will use this same script for both practical examples, adding only the commands needed to make the result visible. Your other scripts do not need to change.

    Visual Trigger step 2: Create a blank script. In this library, the new script appears at the end, so scroll down to find it. Open its three-dot menu and choose Rename. Replace the default name with a clear name for your guide, then save it. Open the renamed script. We will use this same script for both practical examples, adding only the commands needed to make the result visible. Your other scripts do not need to change.
  3. Step 03

    Open Advanced and drag Visual Trigger into the script. Then open its placed command. The practical guides will add a short confirmation sequence around it.

    Visual Trigger step 3: Open Advanced and drag Visual Trigger into the script. Then open its placed command. The practical guides will add a short confirmation sequence around it.
  4. Step 04

    Mode offers OR, AND, and XOR: any, all, or exactly one accepted comparison. Exactly two trigger slots must be enabled. In our two-trigger alignment example, all three modes give the same result; we'll use OR.

    Visual Trigger step 4: Mode offers OR, AND, and XOR: any, all, or exactly one accepted comparison. Exactly two trigger slots must be enabled. In our two-trigger alignment example, all three modes give the same result; we'll use OR.
  5. Step 05

    Delay waits after the condition is met, before the tap. Timeout limits how long to wait for the condition; zero removes that limit. Both values are in milliseconds. We'll use no extra delay and a thirty-second timeout.

    Visual Trigger step 5: Delay waits after the condition is met, before the tap. Timeout limits how long to wait for the condition; zero removes that limit. Both values are in milliseconds. We'll use no extra delay and a thirty-second timeout.
  6. Step 06

    Stable Frames requires consecutive matching frames, which helps reject brief visual changes. Press sets how long the resulting tap stays down. We'll use three stable frames and a fifty-millisecond press.

    Visual Trigger step 6: Stable Frames requires consecutive matching frames, which helps reject brief visual changes. Press sets how long the resulting tap stays down. We'll use three stable frames and a fifty-millisecond press.
  7. Step 07

    Set Tap Coordinates chooses a fixed X and Y target. Coordinates can be numbers or Integer variable references. Turn it off to tap Trigger Two's matched image center. That option requires Trigger Two to be an enabled Asset source; Pixel Line examples use a fixed target.

    Visual Trigger step 7: Set Tap Coordinates chooses a fixed X and Y target. Coordinates can be numbers or Integer variable references. Turn it off to tap Trigger Two's matched image center. That option requires Trigger Two to be an enabled Asset source; Pixel Line examples use a fixed target.
  8. Step 08

    Each enabled slot has a source and line geometry. Horizontal lines compare X positions; vertical lines compare Y positions. Set the orientation first, because changing it resets the coordinates. The target icon opens the line selector. If Android asks, allow screen capture.

    Visual Trigger step 8: Each enabled slot has a source and line geometry. Horizontal lines compare X positions; vertical lines compare Y positions. Set the orientation first, because changing it resets the coordinates. The target icon opens the line selector. If Android asks, allow screen capture.
  9. Step 09

    Sample Count controls how many positions are sampled along the line; zero chooses the count automatically. Hit Radius allows a small positional difference in pixels. These settings are separate from color or image confidence.

    Visual Trigger step 9: Sample Count controls how many positions are sampled along the line; zero chooses the count automatically. Hit Radius allows a small positional difference in pixels. These settings are separate from color or image confidence.
  10. Step 10

    Pixel Line looks for the selected color along its line. Choose the color with the square selector or enter its hexadecimal value. Color confidence controls how much color variation is accepted.

    Visual Trigger step 10: Pixel Line looks for the selected color along its line. Choose the color with the square selector or enter its hexadecimal value. Color confidence controls how much color variation is accepted.
  11. Step 11

    Each Frame checks the current colors repeatedly. Once on Start captures that line's color matches at the beginning of the command and keeps them as a reference. A stationary reference and a moving marker are a useful combination.

    Visual Trigger step 11: Each Frame checks the current colors repeatedly. Once on Start captures that line's color matches at the beginning of the command and keeps them as a reference. A stationary reference and a moving marker are a useful combination.
  12. Step 12

    Asset finds a saved image instead of sampling a color. Choose the existing ScriptTap icon portion. Image confidence is separate from color confidence and positional Hit Radius. The shared Asset Creation tab explains how to prepare an image; we do not need to crop another one here.

    Visual Trigger step 12: Asset finds a saved image instead of sampling a color. Choose the existing ScriptTap icon portion. Image confidence is separate from color confidence and positional Hit Radius. The shared Asset Creation tab explains how to prepare an image; we do not need to crop another one here.
  13. Step 13

    The ROI fields and area selector limit where the image is searched for. A small, relevant region is faster and avoids competing look-alikes. Pointer Tip selects the point inside the image used for the position comparison; it is not the final tap point when Trigger Two's image center is the target.

    Visual Trigger step 13: The ROI fields and area selector limit where the image is searched for. A small, relevant region is faster and avoids competing look-alikes. Pointer Tip selects the point inside the image used for the position comparison; it is not the final tap point when Trigger Two's image center is the target.
  14. Step 14

    There are three retained slots, but exactly two must be enabled. Disabling a slot keeps its settings. Changing between Pixel Line and Asset clears the outgoing source settings, so configure the new source before playing.

    Visual Trigger step 14: There are three retained slots, but exactly two must be enabled. Disabling a slot keeps its settings. Changing between Pixel Line and Asset clears the outgoing source settings, so configure the new source before playing.
  15. Step 15

    Save with OK. This settings tour has not run the script. Use the Pixel Line and Asset tabs for complete working examples, including a visible tap result and a Prompt Me confirmation.

    Visual Trigger step 15: Save with OK. This settings tour has not run the script. Use the Pixel Line and Asset tabs for complete working examples, including a visible tap result and a Prompt Me confirmation.