With
shell script - input keyevent KEYCODE_VOLUME_UP, (script for non rooted),
i can pop up the "system Volume slider" and "volume increases by 1 step" same as hardware buttons do.
but only when MacroDroid is in foreground.
when MD is minimised or in background, volume slider do not pop up but...