Volume Variables

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
PaulyQ
Posts: 29
Joined: 18 Oct 2013 20:36

Volume Variables

Post by PaulyQ » 20 Oct 2013 17:03

I am building a lockscreen widget to control and display system settings, including a text control showing the current media volume. In order to update the widget text when vol changes, I have had to include a condition in the Vol flow for each volume level. Would it be possible to add a variable to the audio volume trigger which returns the current volume level so that it's value can be inserted into the widget text instead?

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Volume Variables

Post by MURTUMA » 20 Oct 2013 18:41

When you are in script editor, there is three buttons for snippets, variables and something else. Press the variables and vo'la! You have there everything you need.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Volume Variables

Post by Martin » 21 Oct 2013 15:07

The action Store Audio Volumes stores the volume of each stream to a global variable. The names of the global variables are listed in the help page:
http://automagic4android.com/en/help/co ... eam_volume

Locked