Help Macro

lupodrillo

New member
Good morning. I would like to ask you experts for advice.
I need to create a macro that does these things:
Launch an app (Mi Store), at the top right of the screen press on "skip" (so as not to wait for seconds), then click on account, mi point, and then on an icon for daily points.
This macro should perform this action every day. Is it possible to create it with macrodroid? I'm trying but I can't.
 

hsurB

Well-known member
If you want macrodroid to do it every day at chosen time you will have to use day time trigger.
Also find on the internet how to enable developer settings in your phone and enable pointer location. It will be helpful in setting this macro up (unless you already have macrodroid helper apk, then you can toggle it through configuration window in ui interaction action).
Lets start with something simple.
Trigger: Day time trigger
Actions:
1. Launch app (mi store)
2. Wait before next action - few seconds
3. UI Interaction <- This action can perform clicks/gestures. Using pointer location you can get x,y coordinates to perform click on the menu button in app (you could try identificate in app option when configuring but if you want to automate it all at some point you will need x,y anyway).

If you configured ui interaction correctly, this macro will launch the app, wait few seconds and click the menu button BUT your phone need to be unlocked at this time. It won't work with screen off, right...
BUT again... You can unlock your phone if you have it locked with pin or password using ui interaction.
So if you want it fully automated you could make macro that will lets say at 0:05 unlock the phone, open app, click what you wanted and lock it back.
 
Sounds similar to my auto google play points claiming macro, it even unlocks my phone for me with an action block to do the swipe password if it's off, what I've found out while making this is how horrible the wait until trigger action is with the screen content trigger, so I just set the wait time manually instead of waiting for certain keywords to appear on screen, and you can have it click certain elements with the identity thing, but it's more consistent with x and y coordinates.
 

Attachments

  • Screenshot_20240202_125720_MacroDroid.png
    Screenshot_20240202_125720_MacroDroid.png
    190.5 KB · Views: 11
Last edited:

hsurB

Well-known member
Could you guys elaborate on why is it bad?
And... Have you tried using loop with check text on the screen action instead? (with wait before next action with low value inside). Loop should run until bool variable from check text action is false.
I am about to prepare few macros and I am curious - I wanted to do it the way I described to reduce [wait before] actions.
 

Endercraft

Moderator (& bug finder :D)
Could you guys elaborate on why is it bad?
And... Have you tried using loop with check text on the screen action instead? (with wait before next action with low value inside). Loop should run until bool variable from check text action is false.
I am about to prepare few macros and I am curious - I wanted to do it the way I described to reduce [wait before] actions.
Sometimes it doesn't really work so that's why in wait for triggers you should always put a continue timeout.
 

Dm114

Well-known member
Could you guys elaborate on why is it bad?
And... Have you tried using loop with check text on the screen action instead? (with wait before next action with low value inside). Loop should run until bool variable from check text action is false.
I am about to prepare few macros and I am curious - I wanted to do it the way I described to reduce [wait before] actions.
To avoid endless loops or infinite wait you should include Check text into a limited loop like this:
A: Loop 10 times
A: Check text...
A: Break from loop
+- C: Boolean_var = true
A: Wait 500ms
A: End loop
 
Top