How to display volume slider when using Volume floating buttons?

cska133

Member
Hi,
I use 2 floating buttons for Vol-Up and Vol-Down. Additionally i use popup message in MD to display the volume change when tapping on Vol+/-. As result when tapping on Vol +/- i get popup with numbers till 100.
I wonder if it is possible to display the (volume) slider or something else on the volume change after tapping on Vol+ or -?

Thanks for helping
 

cska133

Member
Ah ok, i was prevent MD to access Internet, than i have to open "Templates" in the Macrodroid App and search for 5431. Ok, now i found it.
As i understand it will add another macro for the slider. I tried it , it is added, but when i press the floating button i have created before it still shows the popup message. What should i change to implement the slider macro?
 

cska133

Member
I my Floating Button macro i added the shell script and pasted "input keyevent KEYCODE_VOLUME_UP". But still no slider. What is wrong?
 

Attachments

  • Screenshot_20221111-090353_MacroDroid.jpg
    Screenshot_20221111-090353_MacroDroid.jpg
    248.4 KB · Views: 9

Endercraft

Moderator (& bug finder :D)
I my Floating Button macro i added the shell script and pasted "input keyevent KEYCODE_VOLUME_UP". But still no slider. What is wrong?
In the shell script action do you use the root option ? Also with the shell script the Volume up action shouldn't be needed.
 

cska133

Member
i choosed no-root option.
When i test my macro (see screenshot above) the slider is displayed. But when tapping the floating button no slider
Now it looks so:
 

Attachments

  • Screenshot_20221111-092849_MacroDroid.jpg
    Screenshot_20221111-092849_MacroDroid.jpg
    267.8 KB · Views: 11
  • Screenshot_20221111-093129_MacroDroid.jpg
    Screenshot_20221111-093129_MacroDroid.jpg
    264.3 KB · Views: 10
Last edited:

Endercraft

Moderator (& bug finder :D)
i choosed no-root option.
When i test my macro (see screenshot above) the slider is displayed. But when tapping the floating button no slider
Now it looks so:
Does the macro triggers with the floating button ? Check the system log and press the corresponding button.
 

cska133

Member
Update:
Interesting is that my created macro displays the slider but only when Macrodroid UI is displayed on the screen in foreground. If i open browser, home screen or other apps, no slider is showed.
 

Endercraft

Moderator (& bug finder :D)
The problem is... MD doesn't have that permission.

When I try to grant with ADB :
C:\Users\*\Documents\platform-tools>adb shell pm grant com.arlosoft.macrodroid android.permission.INJECT_EVENTS
Operation not allowed: java.lang.SecurityException: Package com.arlosoft.macrodroid has not requested permission android.permission.INJECT_EVENTS
 

tuchubby

New member
oh wow I am looking to do the same. try to shell command sendevent results in nothing. same with input keyevent
 
Top