Run trigger - action only once

Progvan

New member
I'm new to MD, and I want to create the following: (basic sequence I'd like)

Trigger: open Amazon app
Action: open a website (payback/amazon coupons)
Then stop the loop, so that the trigger/action runs only once.

The problem I have is that tge website opens the Payback app at the specific Amazon coupons (all good here), but as this app or website has a button to go back to anazon with said cookies/coupons active, it loads the amazon app again, thus, loading the trigger and actionin an endless loop.

I tried the End Loop, tried variables (not really sure I understood how they work), tried if/else..

I'm at a loss. I'd like to automatically go from amazon (or any other specific app shop) to payback to activate the coupons (so I don't forget them), and to be able to go back to the first app without starting the whole loop over again.

Can't find how to do this, searched the Internet, didn't find in reddit, and the forum here says the search terms are too short (run once, run Action once, stop loop after running action once - too short?)

If anyone can help, thanks a lot in adv.
 

dhj49er

Well-known member
I'm new to MD, and I want to create the following: (basic sequence I'd like)

Trigger: open Amazon app
Action: open a website (payback/amazon coupons)
Then stop the loop, so that the trigger/action runs only once.

The problem I have is that tge website opens the Payback app at the specific Amazon coupons (all good here), but as this app or website has a button to go back to anazon with said cookies/coupons active, it loads the amazon app again, thus, loading the trigger and actionin an endless loop.

I tried the End Loop, tried variables (not really sure I understood how they work), tried if/else..

I'm at a loss. I'd like to automatically go from amazon (or any other specific app shop) to payback to activate the coupons (so I don't forget them), and to be able to go back to the first app without starting the whole loop over again.

Can't find how to do this, searched the Internet, didn't find in reddit, and the forum here says the search terms are too short (run once, run Action once, stop loop after running action once - too short?)

If anyone can help, thanks a lot in adv.
Could you provide a screenshot of your macro?

It easier to provide help by suggesting changes to an existing macro.

However, here's one suggestion that might work, if I've correctly understood what's in your macro from your description.

If the time from opening Amazon app to getting the coupons from the website is always the same, then adding a constraint to the open Amazon app trigger could prevent the endless looping

The constraint to add is this macro not invoked for 5 seconds.

The 5 secs is a guess - the time value needs to exceed the time to get coupons I mentioned above.

I've attached a screenshot of the trigger with the required constraint.
 

Attachments

  • Screenshot_20250311_135852_com_arlosoft_macrodroid_EditMacroActivity.jpg
    Screenshot_20250311_135852_com_arlosoft_macrodroid_EditMacroActivity.jpg
    108.6 KB · Views: 6
Last edited:

Progvan

New member
Could you provide a screenshot of your macro?

It easier to provide help by suggesting changes to an existing macro.

However, here's one suggestion that might work, if I've correctly understood what's in your macro from your description.

If the time from opening Amazon app to getting the coupons from the website is always the same, then adding a constraint to the open Amazon app trigger could prevent the endless looping

The constraint to add is this macro not invoked for 5 seconds.

The 5 secs is a guess - the time value needs to exceed the time to get coupons I mentioned above.

I've attached a screenshot of the trigger with the required constraint.
Hi, thnx for the suggestion, I'll try that as soon as I'll get a chance 👍
 
Top