Code: Select all
[Rainmeter]
Author=Jeffrey Morley (modified by Dylan Key)
BackgroundMode=1
Update=500
AppVersion=14001
[Variables]
FontColor=250,250,250
FontColor2=247,247,247
FontSize=12
FontSize2=18
FontSize3=52
FontName=skiplegday
[MeasureBin]
Measure=Plugin
Plugin=RecycleManager.dll
Drives=ALL
RecycleType=COUNT
[ItemCount]
Measure=Calc
Formula= (MeasureBin = 1 ? 2 : 3)
Substitute= "3":"S","2":""
[MeasureSize]
Measure=Plugin
Plugin=RecycleManager.dll
Drives=ALL
RecycleType=SIZE
[MeterCount]
Meter=STRING
MeasureName=MeasureBin
[b]MeasureName2=ItemCount[/b]
FontColor=#FontColor#
FontSize=#FontSize2#
FontFace=#FontName#
X=50
Y=30
Text="%1 ITEM%2"
AntiAlias=1
Hidden=1
[MeterSize]
Meter=STRING
MeasureName=MeasureSize
FontColor=#FontColor2#
FontSize=#FontSize2#
FontFace=#FontName#
X=50
Y=55
Text=%1
Postfix="B"
AutoScale=1
AntiAlias=1
NumOfDecimals=0
Hidden=1
[MeterBinFull]
Meter=IMAGE
ImageName=RecycleFullw.png
X=0
Y=20
W=64
H=64
Hidden=1
LeftMouseDownAction=!execute [!RainmeterPluginBang "MeasureBin OpenBin"]
RightMouseUpAction=!execute [!RainmeterPluginBang "MeasureBin EmptyBin"]
[BinAction]
Measure=Calc
Formula=MeasureBin
IfAboveAction=!execute [!RainmeterShowMeter MeterBinFull][!RainmeterShowMeter MeterCount][!RainmeterShowMeter MeterSize]
IfAboveValue=0
IfEqualAction=!execute [!RainmeterHideMeter MeterBinFull][!RainmeterHideMeter MeterCount][!RainmeterHideMeter MeterSize]
IfEqualValue=0
Lines I added all seem to work exactly as intended up until the substitute line. If I run the skin without the substitute line, it updates correctly and inputs whatever values I set for the conditional statement at the end of "item". I thought maybe that using 0 and 1 for the conditional output might mess up the formula when I substituted for them, so I tried many different values, none of which seemed to change the outcome at all.
Where am I going wrong, and how do I fix it?