Published on
How to build an Android macro with image, text and color detection
A practical guide to macros that react to the screen using image matching, OCR and color triggers, on emulators and on the device.
Most auto clickers tap fixed coordinates. That works until the screen moves: a popup, a different resolution, an animation, and the macro taps the wrong place. A macro that reads the screen does not have that problem. It waits for something to appear, then acts.
Emulo builds macros around three detection triggers: image, text and color. Each step is an action that only runs when its condition matches.
The three triggers
Image. You capture a small piece of the screen (a button, an icon, a card) and the macro looks for it every cycle. When it appears, the step runs. Image detection has adjustable precision, so you can make it strict or tolerant. Use it for buttons and states that always look the same.
Text (OCR). Instead of an image, the macro reads text in a region of the screen. This is useful when the label matters more than the exact pixels, because text does not change with a glow, a hover or a different skin. Use it to check for a word like “Victory”, “Full” or a specific number.
Color. The macro checks the color at a point or region. Color is a cheap, sturdy signal for things like a health bar, a cooldown that turns gray, or a button that lights up. Use it when a state is defined by a color more than by a shape.
Combine triggers with conditions
A single trigger is often enough, but real flows mix them. Emulo lets you combine conditions into groups with AND and OR, and nest a subgroup inside. So a step can run only when “the collect button is visible AND the energy bar is not empty”.
A simple example
Say you want to collect a reward whenever it is ready:
- Condition: the reward icon is visible (image).
- Action: tap the icon.
- Condition: the “claim” button is visible (image).
- Action: tap claim.
Loop it, and the macro claims every reward without you watching.
Where it runs
Build and run this on emulators from your PC with Emulo Agent, or right on your phone or tablet with Emulo Mobile. The macro logic is the same in both.
Ready to try it? Download Emulo and build your first detection-based macro.