mqscript_findcolor
Locate specified colors within a defined screen region using color deviation and similarity settings for mobile automation tasks.
Instructions
Find color in specified region with support for multiple colors, color deviation, and similarity
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bottom | No | Bottom boundary of search region (0 for full screen) | |
colorValue | Yes | Color value in BBGGRR format, multiple colors separated by |, deviation with - (e.g., "FFFFFF-101010|123456") | |
direction | No | Search direction: 0=top-left to bottom-right, 1=center outward, 2=bottom-right to top-left, 3=bottom-left to top-right, 4=top-right to bottom-left | |
left | No | Left boundary of search region (0 for full screen) | |
resultVariable | No | Variable name to store result index | result |
right | No | Right boundary of search region (0 for full screen) | |
similarity | No | Color similarity (0-1, higher is more similar) | |
top | No | Top boundary of search region (0 for full screen) | |
xVariable | No | Variable name to store found X coordinate | intX |
yVariable | No | Variable name to store found Y coordinate | intY |