Deeper Variable Integration

FrameXX

Well-known member
Recently there was added ability to select app to launch via package name that could be variable. I appreciate that, but i think that lot of more MacroDroid triggers, actions, and constrants need this ability to be configured with variables as they are most static now, and limits user ability to make really dynamic macros (there is always way how to make macros more "dynamic" with separate constraints but in a lot of cases it takes a lot more effort and macro is more complicated, harder to manage, orientate in... than it would have to.)

So i am making here a list of triggers, actions, and constraints, that i think most need variable integration and i find it missing there. I am really not going to write every block where variable integration could be done, since I personally didn't find any need to use variable that would I miss in lot of them.


  • App Install/Remove/Update - ability to choose packages that could be variables.

  • Application Launched/Closed - same...

  • Notification - same...

  • Light sensor - ability to work with current light level as MacroDroid decimal variable.

  • App Enable/Disable - ability to choose packages that could be variables.

  • Clear App Data - same...

  • Kill Application - same...

  • Kill Background Process - same...

  • System Setting - ability to use variables in "value" field.

  • Application Running - ability to choose packages that could be variables.

  • Volume level - ability to use integer variable as volume level.


As lot of these blocks choose from multiple apps, I would separate every app package with comma or space.
 

Pseudocyclic

Well-known member
  • Volume level - ability to use integer variable as volume level.
This is already possible.

Set Variable -- select integer (or decimal) variable -- select Expression -- select '...' icon -- select volume from menu

Volume Change action -- select relevant volume(s) -- select the triangular down icon to the right of 'Slider value' -- select integer (or decimal) variable
 

FrameXX

Well-known member
This is already possible.

Set Variable -- select integer (or decimal) variable -- select Expression -- select '...' icon -- select volume from menu

Volume Change action -- select relevant volume(s) -- select the triangular down icon to the right of 'Slider value' -- select integer (or decimal) variable
This is working with volume action, but not with volume constraint. That's why it's green. I made it with MacroDroid colour style.
 

Josué García

MacroDroid Support
Staff member
It's a great idea, there are users with great knowledge in Macrodroid and I think this would offer a lot of power to the creation of new macros (I know users who edit the .macro files to achieve some things like what is being requested)
 

FrameXX

Well-known member
Use Set Variable action and MacroDroid Variable constraint.
Now I got your point. It's possible. It's not direct but it's pretty simple. For example this macro will only work if media volume = current brightness. I know it's stupid. But I am just testing.
Test.png
 

Jacob L

Moderator (Lawsonator)
The day/time trigger would be better with variables, so I could get the alarm clock next alarm and minus 10 minutes then use that value as the trigger
 

Conda

New member
Oh yes! Macrodroid is such great app and the global and local variable feature would get so much stronger and more useful with the deeper integration in triggers, actions and conditions!
 
Top