how do I create a macro that runs only x secs?

dwaynek

New member
am trying to create a macro that launches the home screen after x secs if the screen is off. I tried using stopwatch but my macro is executing immediately and not waiting x secs before executing.
 

Attachments

  • Screenshot_20231207_160729_MacroDroid.jpg
    Screenshot_20231207_160729_MacroDroid.jpg
    268.6 KB · Views: 5

RSF

Well-known member
You'll want to distinguish which trigger is executing the macro, and perform different actions accordingly. You'll probably also want to handle the scenario of your turning the screen on, within the 10 second period after you turn it off (to avoid having the home screen displayed while you're in the middle of an app).
1701989951735.png
1701989983357.png

You could also try a shorter scheme, without the need for a stopwatch or its stopwatch trigger:
1701990173330.png
I think the Cancel Macro Actions action cancels all occurrences of a given macro, not just the currently-running one. If not, this won't work.
 
Top