Script does not run when macrodroid is not in foreground

t123

New member
I am trying to make floating buttons to control media. For that I used the script to send keyevent 89 (rewind) and 90 (fast forward). Another button that used the inbuilt media control Action as play/pause button.

The play/pause button is working fine but the other buttons work only when the macrodroid is in foreground.
I didn't give any permission by adb so far.

The most likely cause maybe be the input method which is not set to macrodroid. Automate works only when the Input method (keyboard) is set (but it does not provide floating buttons)

I checked the logs and it does not show any issue. It shows that the action has been triggered. is there any way to run these when macrodroid in background but running?

PS: I found macrodroif just today, please bear with me.
 
Last edited:

t123

New member
Thanks all. It's certainly regarding IME. I observed same behavior in Automate when the default keyboard was Swiftkey and not automate's own keyboard.

I just sent broadcast from floating buttons of Macrodroid to Automate (because I couldn't find Macrodroid's keyboard. Only option ithas is to change 'Default keyboard' and there's no action to set some specific keyboard) and do the processing : set Automate's own keyboard and then send key press action. It's quite complex compared to what I expected but it works :p

Have you tried the control media action?

I tried all combinations, they had next and previous instead of fast forward and rewind options.

Btw, can you please tell why toggling (using quicktiles) floating buttons takes significant time in around 60-70% if it's been in use for sometime. It's same behaviour irrespective of whether 3 floating buttons (3 macros) run or a single floating button is shown/hidden. It becomes fine on rebooting, though.

Macros only enables the buttons and sends a broadcast. No heavy processing is involved.
 
Last edited:

MacroDroidDev

Administrator
Staff member
The Floating buttons toggling is one of many things on my long list to look at. I don't currently have any idea why it's doing this but hopefully I will get to the bottom of it.
 
Top