Initially I started with the "normal" CPU, RAM and Network meters and everything was fine.
Then I decided to use HwInfo to obtain all tha values displayed, and everything was still fine.
The I decided to change the color or the shown value depending on the value itself, and here i started to have problems: i usually set the color using a variable (for example #Color1#) at the beginning of the .ini configuration file, so I can change the colors of the skin very quickly.
the problem is, I am not able to change the color of the shown values, using IfAboveValue, IfAboveAction and !SetOption.
Here's a portion of the configuration file:
Code: Select all
[Rainmeter]
Update=250
[Variables]
Font=Neuropolitical Rg
FontSize1=8
FontSize2=6
FontSize3=12
Color1=255, 255, 255, 255
Color2=255, 255, 255, 200
Color3=255, 255, 255, 150
Color4=255, 255, 255, 100
Color5=255, 255, 255, 50
Red=255, 0, 0, 255
Background=0, 0, 0, 1
Width=(#WORKAREAWIDTH# / 4)
Height=(#WORKAREAHEIGHT# / 20)
;//////////////////////////////////////////////
[MeasureAverageCPU]
Measure=Plugin
Plugin=HwInfo.dll
HWiNFOID=1007030
IfAboveValue=5
IfAboveAction=[!SetOption MeterCPUAverageText FontColor #Red#][!UpdateMeter MeterCPUAverageText][!Redraw]
IfBelowValue=4
IfBelowAction=[!SetOption MeterCPUAverageText FontColor #Color1#][!UpdateMeter MeterCPUAverageText][!Redraw]
;///////////////////////////////////////////
[MeterCPULine]
Meter=Line
MeasureName=MeasureAverageCPU
X=(#Height# * 4)
Y=(#Height# * 0.3)
W=(#Width# - (#Height# * 4))
H=(#Height# * 0.7)
LineCount=1
LineColor=#Color1#
LineWidth=1
SolidColor=#Background#
Autoscale=1
AntiAlias=1
[MeterCPUAverageText]
Meter=String
MeasureName=MeasureAverageCPU
FontFace=#Font#
FontSize=#FontSize3#
FontColor=#Color1#
X=(#Height# / 4)r
Y=0
AntiAlias=1
Text=%1%
UpdateDivider=4
DynamicVariables=1
As you can see I tried also with "DynamicVariables=1" but it doesn't work.
Any help?
PS: sorry for my english, I am not nativ english speaking