With root, which isn't what the user wants. Setting up an adb connection also seems overkill.
@kantkk Is there a notification that appears with a button to turn off the vpn? If so MacroDroid can interact with it and disable the vpn that way.
Regular expression does insensitive matching unless you use the i option, but as we can't do that in MacroDroid RegEx also allows for inline modifiers.
No, the box is not taken into account when RegEx matching is enabled.
The wait until trigger blocks execution until one of the specified triggers fire. The macro then continues where it stopped.
In that case I imagine the wait until trigger is firing instantly because of the notification reply action, which would update the notification and cause the trigger to...
A simple method is to use [lv=strvar] to put into an int var. A better method in case there are not only numbers is to use text manipulation -> extract text \d, put the result into the same variable and use the first method.
Array values don't have to be strings though. They can be any...