Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 696

Help: Rainmeter Skins • Re: Variables in section names.

$
0
0
So I created 13 variables, one for each of the 13 measure names in a group of 13 meters. I set their values consecutively from 1 to 13. So far, working correctly.

Next I created a measure which, based on day or night, uses bangs to set the values of those variables either to 1 - 13, or to 0 - 12. But this doesn't work.

In the documentation on Bangs is says "!SetVariable can create a new variable in memory, even if it is not pre-defined in the [Variables] section." And in the documentation on Variables, it says "!SetVariable can also be used to create a variable that does not already exist in the [Variables] section." However, in that same page it also says "In addition, there are some [Sections] and plugins which do not support dynamic variables at this time. The following are sections where dynamic variables cannot be used: [Variables]." So, does this mean that one cannot use bangs to alter the value of a variable defined in the [Variables] section?
!SetVariable can be used to create, set, or change any variable. DynamicVariables is not needed and not supported in the [Variables] section, but if you are setting or changing a variable, you will need DynamicVariables most places you will use the #VariableName#.

Code:

[Variables][MeasureOne]Measure=CalcFormula=1IfCondition=MeasureOne = 1IfTrueAction=[!SetVariable MyVariable "One"][!UpdateMeter MeterOne][!Redraw][MeterOne]Meter=StringFontColor=255,255,255,255FontSize=12SolidColor=0,0,0,1Text=#MyVariable#AntiAlias=1DynamicVariables=1
1.jpg

Statistics: Posted by jsmorley — Yesterday, 9:47 pm



Viewing all articles
Browse latest Browse all 696

Trending Articles