Does the screen turn off if you go to the device home screen (the screen that appears when the device is booted) and tap twice in quick succession on an empty part of the screen?
Next time there is a MacroDroid update, first check status, then accept the MacroDroid update, then when the update has completed, check again. If status has changed from ON to Not Working, try rebooting the device.
Use Regex.
However, if you would like to try a DIY solution without any Regex research/learning...
- set test string variable to ""
- set integer variable to -1
- repeat while test string variable is not •
- increase integer variable value by 1
- copy source string character at integer variable...
Or this (not as precise, but might be sufficient in practice):
T1 = button1
T2 = button2
A = if trigger fired = T1
A = wait until trigger fired = button2 (cancel after 1s timeout)
A = else
A = wait until trigger fired = button1 (cancel after 1s timeout)
A = end if
A = pause media player
Try this:
T1 = button1
T2 = button2
A = if trigger fired = T1
A = set Iinteger to Iinteger +1
A = else
A = set Iinteger to Iinteger -1
A = end if
A = wait 100ms
A = if Iinteger = 0
A = pause media player
A = else
A = set Iinteger to 0
A = end if
A = cancel macro actions