is it possible to change the color of a script output? I tried with IfAboveValue=400 and IfAboveAction=!RainmeterSetVariable MeasureColor 0,0,0,0 but its not working. I guess the problem is, that Rainmeter only sees the value just as text and not as number.
If that is the case, is there a way to change the color with Substitute?
So like that Substitute="X":"Y"&FontColor=255,255,255,255
I hope, its understandable.^^
Thanks in advance.
Code: Select all
[Rainmeter]
Update=1000
Background=#@#Background.png
DynamicWindowSize=1
AccurateText=1
BackgroundMode=3
BackgroundMargins=0,34,0,14
[Variables]
MeasureColor=255,255,255,255
[MeasureRun]
Measure=Plugin
Plugin=RunCommand
#Parameter=cscript //nologo #@#Scripts\passwordExpires.vbs
Parameter=powershell -NoLogo #@#Scripts\passwordExpires.ps1
State=Hide
OutputType=ANSI
; RegExpSubstitute=1
; Substitute="Name.*#CRLF#":"","#CRLF#":""
IfAboveValue=400
IfAboveAction=!RainmeterSetVariable MeasureColor 0,0,0,0
IfBelowValue=300
IfBelowAction=!RainmeterSetVariable MeasureColor 200,200,200,200
[MeterRun]
UpdateDivider=-1
Meter=String
FontSize=12
FontColor=255,255,255,255
AntiAlias=1
OutputType=Unicode
Text=Text:
X=55
Y=12
W=200
H=18
OnUpdateAction=[!CommandMeasure MeasureRun "Run"]
[MeterResult]
Meter=String
MeasureName=MeasureRun
Y=7R
FontSize=12
FontColor=#MeasureColor#
X=15
Y=12
W=200
H=18
AntiAlias=1