Code: Select all
[measureCPUTjMax]
Measure=Plugin
Plugin=CoreTemp
CoreTempType=TjMax
Substitute="0":"#CPUTempMaxFallback#"
[MeasureMakeNum]
Measure=Calc
Formula=[measureCPUTjMax]
DynamicVariables=1
1.png
https://docs.rainmeter.net/manual/variables/section-variables/
Basically, anywhere you use a measure value as a [SectionVariable] it will use the string value of the measure, unless you use [SectionVariable:] which will force it to use the number value. In the context of a Calc measure, this will set both the number and string value of the Calc measure to the string value of the referenced measure. Be sure to use
DynamicVariables=1 anywhere you use a section variable.
Depending on where you want to use this number value, you may well not need a separate Calc measure, but simply use the [SectionVariable] and
DyanmicVariables=1 where you want to treat the string value of the measure as a number. Just keep in mind however that you can't use a [SectionVariable] as a MeasureName option to bind a measure to a meter, so in that case the Calc measure would be the best route.
[MeterBar]
Meter=Bar
MeasureName=measureCPUTjMax
Nope: this will use the zero numeric value
[MeterBar]
Meter=Bar
MeasureName=[measureCPUTjMax]
DyanmicVariables=1
Nope: this is invalid
[MeterBar]
Meter=Bar
MeasureName=MeasureMakeNum
Yep...
You do not have the required permissions to view the files attached to this post.