Published on
Build Your First EmuloAgent Automation
Build your first EmuloAgent macro step by step with actions, detection regions, image, text, color and AND/OR condition groups.
In this episode we build a first automation from scratch. The plan is a macro that unlocks the screen, opens a practice app, and clears its little challenges on its own: tapping when a button turns green, tapping when the screen shows a certain number, and collecting coins. The video runs about nine minutes. This post is the written companion, with the reasoning behind each choice so you can repeat it on your own screen.
The loop: action, condition, region, test
The whole builder comes down to a short loop. You add an action, give it a condition, set the detection region (where the condition looks), and press Test. When the test passes, you move to the next step. The window is split: on the left, a live mirror of the emulator kept in sync by the red Live button; on the right, the steps you stack up. Before anything, you pick the profile so the builder knows which screen to watch.
Step 1: unlock with a tap and an image condition
The first step unlocks the screen. You add a simple tap and mark the spot on the live screen. A blind tap is fragile, because the screen is not always where you expect. So the builder asks if you want a condition, and this is the heart of the tool. An Image appearance condition keeps a small snapshot and taps only when that image is on screen. You draw the search area snug around the lock icon, set it to fire when the image is Visible, and you can dial how closely it must match with the Threshold. Save, Test, and the screen unlocks.
Step 2: open the app and tighten the region
Step two opens the app itself with another tap plus an image condition, this time on the app icon. The tighter you draw the box around the icon, the faster and surer the match, because the agent knows exactly where to look. Right-click the condition for more options: re-crop the saved image, or resize the search area any time. This is worth the habit early. A snug region is the difference between detection that holds up and detection that drifts.
Step 3: tap when it turns green (color)
Now the agent reacts to what is on screen. The challenge is to tap a button only when it turns green. You add a tap and give it a Color condition. The app asks you to click the exact color to catch, then samples a small patch around that point, about forty by forty pixels, and saves it as the reference color. Tolerance is the wiggle room: zero means an exact match, a higher number lets in nearby shades. If the small patch is not enough, Adjust region widens the search area. The trick shown in the video: wait for the button to actually be green before you capture the color, so the reference is the shade you really want.
Step 4: tap when it shows a 7 (text)
The next challenge is to tap only when a certain number appears. For that you use a Text condition, which reads the screen with OCR. You frame the number and press Detect text; it reads a seven and reports how sure it is. The important setting is the Mode. Equals fires only on exactly that value; Contains fires on any text that includes it; there is also Not equal and a pattern option. You can require a minimum confidence, so a blurry guess does not count. Tidy the detection area so it sits right on the number, and since the number keeps shuffling, the macro simply waits for the seven, then taps.
Combine conditions: All true
Real tasks often need more than one thing to be true at once. The first way to combine conditions is to stack them in the same group. You add a tap on the Collect button and give it two conditions instead of one: an image (a star must be showing) and a color it should also see. The tag above them reads All true, which means the tap fires only when every condition is true at the same time. This is the strict version, where everything has to line up.
Add a group: Any true
The second way is grouping. Sometimes you do not want everything true, you want options. You add another tap on Collect and start with one condition, the green button, which lands in a group tagged All true. When you add a different kind of condition, the app opens a brand new group for it, tagged Any true, where a single condition inside is enough to pass. So one group can insist on the green while a second group is happy with the number seven or the star, either one. Each group carries its own tag, All true or Any true, and one click flips between them. That is how you spell out exactly when a tap should happen: some things required, others optional.
Run it live
With the logic saved, you jump to the Automations screen, point the macro at your profile, and hit run. From there you watch. EmuloAgent unlocks the screen, opens the app, taps the button the moment it turns green, waits for the seven and taps, and collects again and again as the coins pile up. Every hit is the computer vision you set up, working frame after frame. That is the whole loop: an action, a condition, the right search area, and a test. Start simple, then layer conditions and groups as your automations grow.
Next
New here? Start with the app overview and how profiles work. To practice the exact macro from the video, open the playground, then download EmuloAgent to build it on your own emulator.
Frequently asked questions
- Do I need to know how to code to build a macro?
- No. You build a macro visually: add an action, mark it on a live mirror of the emulator, and give it a condition. There is no scripting.
- What is the detection region?
- It is the area of the screen where a condition looks. Drawing it tightly around the target makes detection faster and more reliable, because the agent knows exactly where to look.
- What is the difference between All true and Any true?
- Inside an All true group, every condition must be true at the same time. Inside an Any true group, a single condition is enough to pass. You can combine a required group with an optional one.
- Where can I practice without touching a real game?
- The video uses FakeApp in the Emulo playground, a free test app made to exercise taps, conditions and detection. You can open it and build the same macro yourself.