Reading a system variable

fbarajas

New member
Hi!

I'm a Macrodroid newbie, but I'm liking it so much, that I already bought the "pro" version.

I have a simple question: How can I "read" a system variable (for example, the "volume" or the "screen brightness" on a variable?

So, for example, I could do something like

level=read(NotificationVolume) //read the current notification volume in variable "level"
Using the "Change Volume" action, turn the volume to max
Using the "Device Action", say "WAKEUP LAZY!!!"
Using the "Change Volume" action, turn volume down to previous level (the one stored on the "level" variable).

That way, when something triggers this macro, it would remember the current volume on the variable level, turn up the volume to max, say a "wakeup" message loudly, and then return to the original level.

Hope I make myself clear.

Thanks!
 

Dm114

Active member
Hi!

I'm a Macrodroid newbie, but I'm liking it so much, that I already bought the "pro" version.

I have a simple question: How can I "read" a system variable (for example, the "volume" or the "screen brightness" on a variable?

So, for example, I could do something like

level=read(NotificationVolume) //read the current notification volume in variable "level"
Using the "Change Volume" action, turn the volume to max
Using the "Device Action", say "WAKEUP LAZY!!!"
Using the "Change Volume" action, turn volume down to previous level (the one stored on the "level" variable).

That way, when something triggers this macro, it would remember the current volume on the variable level, turn up the volume to max, say a "wakeup" message loudly, and then return to the original level.

Hope I make myself clear.

Thanks!
As Pseudocyclic said, explore these options, mainly by pressing the 3-dot button on the right side of the input field
__________ [...] (after selecting the 'Expression' option for numerical variables).
Then you'll get all 'Magic text', i.e. all internal and system variables available according to the triggers you defined (for those depending on a special context). For instance, to get all details of a notification (title, text...), you have to use at least one trigger mentioning 'Notification...'
 
Top