IfCondition not working in Custom Rainmeter skin

Help with creating, editing & fixing problems with skins

IfCondition not working in Custom Rainmeter skin

November 14th, 2017, 5:23 am
ahmar16
   [1 posts]

I am really new to creating Rainmeter custom skins so please bear with me. I created a small skin to work with Hwinfo.dll for showing some data related to CPU and RAM etc. The data works fine for now and everything is okay. The only problem I am facing is that all of the IfConditions that I put in there do not work.
I want to change font color based on percentage and data values but it only shows one color.
My whole config file:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1

[Metadata]
Name="HWiNFO: System Sensors"

; ------------------------------ variables ------------------------------

[Variables]
@Include=#@#\HWiNFO.inc
SkinX=0
SkinY=0
SkinW=260
SkinH=292
SkinSolidColor=0,0,0,75
SkinBorder=5
TitleText="Dell Inspiron 15-3521"
; to be changed
CPUName="CPU #0: Intel Core i3 3227U"
; to be changed
RAMName="RAM: Kingston 8Gb DDR3-1600"
; to be changed
BatteryName="Battery: LGC DELL 49VTP27J"
; to be changed
PaddingLeft=5
PaddingTop=2
PaddingRight=5
PaddingBottom=2
MeterW=(#SkinW#-2*#SkinBorder#-#PaddingLeft#-#PaddingRight#)
MeterH=12
Image_BarGradient_W=233     
Image_BarGradient_H=39
MinRam=0
MaxRam=8192
; to be changed
MinPercent=0
MaxPercent=100
MinRPM=0
MaxRPM=5500

CPUUsageDynamicColor=255,255,0
CPUTempDynamicColor=255,255,0
RAMDynamicColor=255,255,0



; ------------------------------ styles ---------------------------------

[StyleBackgroundDark]
SolidColor=80,80,80

[StyleBackgroundLight]
SolidColor=115,25,25,150

[StyleTextTitle]
StringAlign=Center
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontColor=219,219,219
FontFace=Trebuchet MS
FontSize=10
AntiAlias=1
Padding=#PaddingLeft#,#PaddingTop#,#PaddingRight#,#PaddingBottom#

[StyleTextHeader]
StringAlign=Center
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontColor=219,219,219
FontFace=Trebuchet MS
FontSize=10
AntiAlias=1
Padding=#PaddingLeft#,#PaddingTop#,#PaddingRight#,#PaddingBottom#

[StyleText]
StringAlign=Left
StringCase=None
StringStyle=Bold
FontColor=234,234,234
FontFace=Trebuchet MS
FontSize=8
AntiAlias=1
Padding=#PaddingLeft#,#PaddingTop#,#PaddingRight#,#PaddingBottom#

[StyleBar-HW_System_PhysicalMemoryLoad]
W=#MeterW#-40
H=(#MeterH#/3)
SolidColor=200,200,200
BarOrientation=Horizontal
AntiAlias=1

; ------------------------------ meta-meters ----------------------------

[SkinBackground]
Meter=Image
X=#SkinX#
Y=#SkinY#
H=#SkinH#
W=#SkinW#
SolidColor=#SkinSolidColor#

[SkinTitle]
Meter=String
MeterStyle=StyleTextTitle|StyleBackgroundDark
W=#MeterW#
H=18
X=(#SkinW#/2)
Y=#SkinBorder#r
Text=#TitleText#

; ------------------------------ measures -------------------------------
[Measure-HW_System_PhysicalMemoryUsed]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-System-SensorId#
HWiNFOSensorInstance=#HWiNFO-System-SensorInstance#
HWiNFOEntryId=#HWiNFO-System-RamUsed#
HWiNFOType=CurrentValue
MinValue=#MinRam#
MaxValue=#MaxRam#
RegExpSubstitute=1
DynamicVariables=1
Substitute="\d{1,3}(?=(\d{3})+(?!\d))":"\0,"
IfCondition=(Measure-HW_System_PhysicalMemoryUsed >= 6553)
IfTrueAction=[!SetVariable RAMDynamicColor 255,0,0,150]
IfCondition2=(Measure-HW_System_PhysicalMemoryUsed < 6553) && (Measure-HW_System_PhysicalMemoryUsed > 3276)
IfTrueAction2=[!SetVariable RAMDynamicColor 255,255,0]
IfCondition3=(Measure-HW_System_PhysicalMemoryUsed <= 3276)
IfTrueAction3=[!SetVariable RAMDynamicColor 0,255,0,150]

[Measure-HW_System_PhysicalMemoryAvailable]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-System-SensorId#
HWiNFOSensorInstance=#HWiNFO-System-SensorInstance#
HWiNFOEntryId=#HWiNFO-System-RamAvailable#
HWiNFOType=CurrentValue
MinValue=#MinRam#
MaxValue=#MaxRam#
RegExpSubstitute=1
Substitute="\d{1,3}(?=(\d{3})+(?!\d))":"\0,"

[Measure-HW_System_PhysicalMemoryLoad]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-System-SensorId#
HWiNFOSensorInstance=#HWiNFO-System-SensorInstance#
HWiNFOEntryId=#HWiNFO-System-RamLoad#
HWiNFOType=CurrentValue
MinValue=#MinPercent#
MaxValue=#MaxPercent#
DynamicVariables=1
IfCondition=(Measure-HW_System_PhysicalMemoryLoad >= 80)
IfTrueAction=[!SetVariable RAMDynamicColor 255,0,0,150]
IfCondition2=(Measure-HW_System_PhysicalMemoryLoad < 80) && (Measure-HW_System_PhysicalMemoryLoad > 40)
IfTrueAction2=[!SetVariable RAMDynamicColor 255,255,0]
IfCondition3=(Measure-HW_System_PhysicalMemoryLoad <= 40)
IfTrueAction3=[!SetVariable RAMDynamicColor 0,255,0,150]

[Measure-HW_SystemCPUUsage]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-CPU0-SensorId#
HWiNFOSensorInstance=#HWiNFO-CPU0-SensorInstance#
HWiNFOEntryId=#HWiNFO-CPU0-Usage#
HWiNFOType=CurrentValue
MinValue=#MinPercent#
MaxValue=#MaxPercent#
DynamicVariables=1
IfCondition=(Measure-HW_SystemCPUUsage >= 80)
IfTrueAction=[!SetVariable CPUUsageDynamicColor 255,0,0,150]
IfCondition2=(Measure-HW_SystemCPUUsage < 80) && (Measure-HW_SystemCPUUsage > 50)
IfTrueAction2=[!SetVariable CPUUsageDynamicColor 255,255,0]
IfCondition3=(Measure-HW_SystemCPUUsage <= 50)
IfTrueAction3=[!SetVariable CPUUsageDynamicColor 0,255,0,150]

[Measure-HW_SystemCPUClock_Core0]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-CPU0-SensorId#
HWiNFOSensorInstance=#HWiNFO-CPU0-SensorInstance#
HWiNFOEntryId=#HWiNFO-CPU0-Core0-Clock#
HWiNFOType=CurrentValue
MinValue=#MinPercent#
MaxValue=#MaxPercent#

[Measure-HW_SystemCPUClock_Core1]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-CPU0-SensorId#
HWiNFOSensorInstance=#HWiNFO-CPU0-SensorInstance#
HWiNFOEntryId=#HWiNFO-CPU0-Core1-Clock#
HWiNFOType=CurrentValue
MinValue=#MinPercent#
MaxValue=#MaxPercent#

[Measure-HW_SystemCPUFan]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-CPUFan-SensorId#
HWiNFOSensorInstance=#HWiNFO-CPUFan-SensorInstance#
HWiNFOEntryId=#HWiNFO-CPUFan-Speed#
HWiNFOType=CurrentValue
MinValue=#MinRPM#
MaxValue=#MaxRPM#

[Measure-HW_SystemCPUPackageTemp]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-CPU0-DTS-SensorId#
HWiNFOSensorInstance=#HWiNFO-CPU0-DTS-SensorInstance#
HWiNFOEntryId=#HWiNFO-CPU0-DTS-CoreMaxTemp#
HWiNFOType=CurrentValue
MinValue=#MinPercent#
MaxValue=#MaxPercent#
DynamicVariables=1
IfCondition=(Measure-HW_SystemCPUPackageTemp >= 70)
IfTrueAction=[!SetVariable CPUTempDynamicColor 255,0,0,150]
IfCondition2=(Measure-HW_SystemCPUPackageTemp < 70) && (Measure-HW_SystemCPUPackageTemp > 55)
IfTrueAction2=[!SetVariable CPUTempDynamicColor 255,255,0,150]
IfCondition3=(Measure-HW_SystemCPUPackageTemp <= 55)
IfTrueAction3=[!SetVariable CPUTempDynamicColor 0,255,0,150]

[Measure-HW_SystemCPUCore0Temp]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-CPU0-DTS-SensorId#
HWiNFOSensorInstance=#HWiNFO-CPU0-DTS-SensorInstance#
HWiNFOEntryId=#HWiNFO-CPU0-DTS-Core0Temp#
HWiNFOType=CurrentValue
MinValue=#MinPercent#
MaxValue=#MaxPercent#
DynamicVariables=1
IfCondition=(Measure-HW_SystemCPUCore0Temp >= 70)
IfTrueAction=[!SetVariable CPUTempDynamicColor 255,0,0,150]
IfCondition2=(Measure-HW_SystemCPUCore0Temp < 70) && (Measure-HW_SystemCPUCore0Temp > 55)
IfTrueAction2=[!SetVariable CPUTempDynamicColor 255,255,0]
IfCondition3=(Measure-HW_SystemCPUCore0Temp <= 55)
IfTrueAction3=[!SetVariable CPUTempDynamicColor 0,255,0,150]

[Measure-HW_SystemCPUCore1Temp]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-CPU0-DTS-SensorId#
HWiNFOSensorInstance=#HWiNFO-CPU0-DTS-SensorInstance#
HWiNFOEntryId=#HWiNFO-CPU0-DTS-Core1Temp#
HWiNFOType=CurrentValue
MinValue=#MinPercent#
MaxValue=#MaxPercent#
DynamicVariables=1
IfCondition=(Measure-HW_SystemCPUCore1Temp >= 70)
IfTrueAction=[!SetVariable CPUTempDynamicColor 255,0,0,150]
IfCondition2=(Measure-HW_SystemCPUCore1Temp < 70) && (Measure-HW_SystemCPUCore1Temp > 55)
IfTrueAction2=[!SetVariable CPUTempDynamicColor 255,255,0]
IfCondition3=(Measure-HW_SystemCPUCore1Temp <= 55)
IfTrueAction3=[!SetVariable CPUTempDynamicColor 0,255,0,150]

[Measure-HW_SystemBatteryVoltage]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-Battery-SensorId#
HWiNFOSensorInstance=#HWiNFO-Battery-SensorInstance#
HWiNFOEntryId=#HWiNFO-Battery-Voltage#
HWiNFOType=CurrentValue

[Measure-HW_SystemBatteryWearTear]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-Battery-SensorId#
HWiNFOSensorInstance=#HWiNFO-Battery-SensorInstance#
HWiNFOEntryId=#HWiNFO-Battery-WearTear#
HWiNFOType=CurrentValue
MaxValue=#MaxPercent#
MinValue=#MinPercent#
InvertMeasure=1

[Measure-HW_SystemBatteryChargeLevel]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-Battery-SensorId#
HWiNFOSensorInstance=#HWiNFO-Battery-SensorInstance#
HWiNFOEntryId=#HWiNFO-Battery-ChargeLevel#
HWiNFOType=CurrentValue

[Measure-HW_SystemBatteryChargeRate]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-Battery-SensorId#
HWiNFOSensorInstance=#HWiNFO-Battery-SensorInstance#
HWiNFOEntryId=#HWiNFO-Battery-ChargeRate#
HWiNFOType=CurrentValue

[Measure-HW_SystemBatteryRemainingCapacity]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-Battery-SensorId#
HWiNFOSensorInstance=#HWiNFO-Battery-SensorInstance#
HWiNFOEntryId=#HWiNFO-Battery-CapacityRemaining#
HWiNFOType=CurrentValue








; ------------------------------ meters ---------------------------------

; ---- cpu data started ----

[MeterString-HW_CPU_Name]
Meter=String
MeterStyle=StyleTextHeader|StyleBackgroundDark
W=#MeterW#
H=18
X=(#SkinW#/2)
Y=(#SkinBorder#)R
Text=#CPUName#

[MeterString-HW_CPU_UsageText]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
W=#MeterW#
H=#MeterH#
X=#SkinBorder#
Y=0R
Text="Usage:"

[MeterString-HW_CPU_UsageValue]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
MeasureName=Measure-HW_SystemCPUUsage
StringAlign=Right
W=#MeterW#
H=#MeterH#
X=(#SkinW#-#SkinBorder#)
Y=0R
Text="%1 %"
DynamicVariables=1
FontColor=#CPUUsageDynamicColor#

[MeterBar-HW_CPU_UsageBar]
Meter=Bar
MeterStyle=StyleBar-HW_System_PhysicalMemoryLoad
MeterStyle=StyleBackgroundLight
MeasureName=Measure-HW_SystemCPUUsage
DynamicVariables=1
BarColor=#CPUUsageDynamicColor#
X=(#SkinBorder#+#PaddingLeft#)
Y=((#MeterH#+#PaddingBottom#)/2)r

[MeterString-HW_CPU_ClockText]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
W=#MeterW#
H=#MeterH#
X=#SkinBorder#
Y=(#SkinBorder#-#PaddingTop#)R
Text="Base Clocks (MHz):"

[MeterString-HW_CPU_ClockValue]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
MeasureName=Measure-HW_SystemCPUClock_Core0
Measurename2=Measure-HW_SystemCPUClock_Core1
StringAlign=Right
W=#MeterW#
H=#MeterH#
X=(#SkinW#-#SkinBorder#)
Y=0r
SolidColor=0,0,0,0
Text="Core0: %1 - Core1: %2"

;[MeterString-HW_CPU_ClockValue]
;Meter=String
;MeterStyle=StyleText|StyleBackgroundLight
;MeasureName=Measure-HW_SystemCPUClock_Core2
;Measurename2=Measure-HW_SystemCPUClock_Core3
;StringAlign=Right
;W=#MeterW#
;H=#MeterH#
;X=(#SkinW#-#SkinBorder#)
;Y=0R
;Text="Core2: %1 - Core3: %2"
; uncomment above lines to show Core2 and Core3

[MeterString-HW_CPU_FanSpeedText]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
W=#MeterW#
H=#MeterH#
X=#SkinBorder#
Y=0R
Text="CPU Fan Speed:"

[MeterString-HW_CPU_FanSpeedValue]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
MeasureName=Measure-HW_SystemCPUFan
StringAlign=Right
W=#MeterW#
H=#MeterH#
X=(#SkinW#-#SkinBorder#)
Y=0r
SolidColor=0,0,0,0
Text="%1 RPM"

[MeterString-HW_CPU_PackageTempText]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
W=#MeterW#
H=#MeterH#
X=#SkinBorder#
Y=0R
Text="CPU Temp (°C):"

[MeterString-HW_CPU_PackageTempValue]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
MeasureName=Measure-HW_SystemCPUCore0Temp
MeasureName2=Measure-HW_SystemCPUCore1Temp
StringAlign=Right
W=#MeterW#
H=#MeterH#
X=(#SkinW#-#SkinBorder#)
Y=0r
SolidColor=0,0,0,0
Text="Core0: %1, Core1: %2"
DynamicVariables=1
FontColor=#CPUTempDynamicColor#



; ---- cpu data ended ----
;

[MeterString-HW_RAM_Name]
Meter=String
MeterStyle=StyleTextHeader|StyleBackgroundDark
PaddingTop=0
W=#MeterW#
H=18
X=(#SkinW#/2)
Y=0R
Text=#RAMName#


[MeterString-HW_System_RAMText]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
W=#MeterW#
H=#MeterH#
X=#SkinBorder#
Y=0R
Text="Physical:"

[MeterString-HW_System_PhysicalMemory]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
MeasureName=Measure-HW_System_PhysicalMemoryUsed
StringAlign=Right
W=#MeterW#
H=#MeterH#
X=(#SkinW#-#SkinBorder#)
Y=0r
Text="Used: %1 MB / #MaxRam# MB"
SolidColor=0,0,0,0

[MeterString-HW_System_PhysicalLoad]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
MeasureName=Measure-HW_System_PhysicalMemoryLoad
StringAlign=Right
W=#MeterW#
H=(#MeterH#)
X=(#SkinW#-#SkinBorder#)
Y=0R
Text="%1 %"
DynamicVariables=1
FontColor=#RAMDynamicColor#

[MeterBar-HW_System_PhysicalMemoryLoad]
Meter=Bar
MeterStyle=StyleBar-HW_System_PhysicalMemoryLoad
MeterStyle=StyleBackgroundLight
MeasureName=Measure-HW_System_PhysicalMemoryLoad
X=(#SkinBorder#+#PaddingLeft#)
Y=((#MeterH#+#PaddingBottom#)/2)r
DynamicVariables=1
BarColor=#RAMDynamicColor#
IfCondition=(MeterBar-HW_System_PhysicalMemoryLoad >= 70)
IfTrueAction=[!SetVariable RAMDynamicColor 255,0,0,150]
IfCondition2=(MeterBar-HW_System_PhysicalMemoryLoad < 70) && (MeterBar-HW_System_PhysicalMemoryLoad > 40)
IfTrueAction2=[!SetVariable RAMDynamicColor 255,255,0]
IfCondition3=(MeterBar-HW_System_PhysicalMemoryLoad <= 40)
IfTrueAction3=[!SetVariable RAMDynamicColor 0,255,0,150]

; RAM end


[MeterString-HW_Battery_Name]
Meter=String
MeterStyle=StyleTextHeader|StyleBackgroundDark
PaddingTop=0
W=#MeterW#
H=18
X=(#SkinW#/2)
Y=(#SkinBorder#-#PaddingTop#)R
Text="#BatteryName#"

[MeterString-HW_Battery_HealthText]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
W=#MeterW#
H=#MeterH#
X=#SkinBorder#
Y=0R
Text="Health:"

[MeterString-HW_Battery_HealthValue]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
MeasureName=Measure-HW_SystemBatteryWearTear
StringAlign=Right
W=#MeterW#
H=#MeterH#
X=(#SkinW#-#SkinBorder#)
Y=0r
SolidColor=0,0,0,0
Text="%1 %"
NumOfDecimals=1

[MeterString-HW_Battery_ChargeLevelText]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
W=#MeterW#
H=#MeterH#
X=#SkinBorder#
Y=0R
Text="Charge Level:"

[MeterString-HW_Battery_ChargeLevelValue]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
MeasureName=Measure-HW_SystemBatteryChargeLevel
StringAlign=Right
W=#MeterW#
H=#MeterH#
X=(#SkinW#-#SkinBorder#)
Y=0r
SolidColor=0,0,0,0
Text="%1 %"

[MeterString-HW_Battery_ChargeRateText]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
W=#MeterW#
H=#MeterH#
X=#SkinBorder#
Y=0R
Text="Charge Rate:"

[MeterString-HW_Battery_ChargeRateValue]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
MeasureName=Measure-HW_SystemBatteryChargeRate
StringAlign=Right
W=#MeterW#
H=#MeterH#
X=(#SkinW#-#SkinBorder#)
Y=0r
SolidColor=0,0,0,0
Text="%1 Watts"
NumOfDecimals=3

[MeterString-HW_Battery_VoltageText]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
W=#MeterW#
H=#MeterH#
X=#SkinBorder#
Y=0R
Text="Voltage:"

[MeterString-HW_Battery_VoltageValue]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
MeasureName=Measure-HW_SystemBatteryVoltage
StringAlign=Right
W=#MeterW#
H=#MeterH#
X=(#SkinW#-#SkinBorder#)
Y=0r
SolidColor=0,0,0,0
Text="%1 Volts"
NumOfDecimals=3

[MeterString-HW_Battery_CapacityText]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
W=#MeterW#
H=#MeterH#
X=#SkinBorder#
Y=0R
Text="Remaining Capacity:"

[MeterString-HW_Battery_CapacityValue]
Meter=String
MeterStyle=StyleText|StyleBackgroundLight
MeasureName=Measure-HW_SystemBatteryRemainingCapacity
StringAlign=Right
W=#MeterW#
H=#MeterH#
X=(#SkinW#-#SkinBorder#)
Y=0r
SolidColor=0,0,0,0
Text="%1 Wh"
NumOfDecimals=3




I am changing CPUUsageDynamicColor, CPUTempDynamicColor, RAMDynamicColor and the IfConditions in the code are something like below:

Code: Select all

IfCondition=(MeterBar-HW_System_PhysicalMemoryLoad >= 70)
IfTrueAction=[!SetVariable RAMDynamicColor 255,0,0,150]
IfCondition2=(MeterBar-HW_System_PhysicalMemoryLoad < 70) && (MeterBar-HW_System_PhysicalMemoryLoad > 40)
IfTrueAction2=[!SetVariable RAMDynamicColor 255,255,0]
IfCondition3=(MeterBar-HW_System_PhysicalMemoryLoad <= 40)
IfTrueAction3=[!SetVariable RAMDynamicColor 0,255,0,150]


Please help me make it work. Thanks.

Re: IfCondition not working in Custom Rainmeter skin

November 14th, 2017, 8:32 am
mak_kawa
   [210 posts]

Meters have not values as section variables.

Probably...

Code: Select all

IfCondition=(Measure-HW_System_PhysicalMemoryLoad >= 70)
IfTrueAction=[!SetVariable RAMDynamicColor 255,0,0,150]
IfCondition2=(Measure-HW_System_PhysicalMemoryLoad < 70) && (MeterBar-HW_System_PhysicalMemoryLoad > 40)
IfTrueAction2=[!SetVariable RAMDynamicColor 255,255,0]
IfCondition3=(Measure-HW_System_PhysicalMemoryLoad <= 40)
IfTrueAction3=[!SetVariable RAMDynamicColor 0,255,0,150]
User avatar

Re: IfCondition not working in Custom Rainmeter skin

November 14th, 2017, 3:17 pm
balala
Rainmeter Sage   [4985 posts]

Plus completing mak_kawa's reply, you have to know that IfConditions work only on measures, not on meters. These options can't be added to meters, as you did. So, in the IfCondition options you can't compare MeterBar-HW_System_PhysicalMemoryLoad with numerical values (because MeterBar-HW_System_PhysicalMemoryLoad is a meter, and as such it doesn't has a value - as mak_kawa very good said), but even if it would have, these options aren't allowed on meters. Move them to the Measure-HW_System_PhysicalMemoryLoad measure, renumbering them, to continue the list of options existing on there.

Return to “Help: Rainmeter Skins”



Who is online

Users browsing this forum: No registered users and 3 guests