Ending macro with power button

lumgte

New member
Hello, Im new to macrodroid, and need help with ending my macro when pressing the power button on my phone that puts it to sleep or locked. When trigger (floating button) is pressed i want macro to be ended by pressing the trigger button once again or by pressing the button on phone that puts it to sleep or locked/unlocked. I tried to do it with variables and restrains nothing works. The macro i add is down here. Thanks in advance!
 

Attachments

  • Text.macro
    13.9 KB · Views: 4
Last edited:

lumgte

New member
Hello, Im new to macrodroid, and need help with ending my macro when pressing the power button on my phone that puts it to sleep or locked. When trigger (button) is pressed i want macro to be ended by pressing the trigger button once again or by pressing the button on phone that puts it to sleep or locked/unlocked. I tried to do it with variables and restrains nothing works. The macro i add is down here. Thanks in advance!
The goal is after putting to sleep when i press power button, that puts it to sleep, once again, macro doesnt work. So when i lock the phone macro stops unlock it still being stopped That said i just wantt the macro to be ended with power button or with trigger that on screen
 
Last edited:

MacroDroidDev

Administrator
Staff member
It's not possible to directly detect the power button being pressed, but you could try using the screen off trigger to disable this macro?
 

lumgte

New member
What i mean is this but id dont work with multiple like 5 macroses. And is it possible to solve without root and adb cause my phone is oppo a54 and it doesnt support those as i tryed.
 

Attachments

  • Black_text.macro
    14.5 KB · Views: 2
Top