Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
---Measures---
[GoodClamping]
Measure=Calc
Formula=Clamp(125,100,10)
[BadClamping]
Measure=Calc
Formula=Clamp(-125,100,10)
---Meters---
[Result]
Meter=String
SolidColor=0,0,0,255
FontColor=255,255,255,255
MeasureName=GoodClamping
MeasureName2=BadClamping
Text=Good clamping = %1#CRLF#Bad clamping = %2
DynamicVariables=1
Code: Select all
[Variables]
TxtG=1#CRLF#2#CRLF#3#CRLF#4#CRLF#5#CRLF#6#CRLF#7#CRLF#8#CRLF#9#CRLF#10#CRLF#11#CRLF#12#CRLF#13#CRLF#14#CRLF#15#CRLF#16#CRLF#17#CRLF#18#CRLF#19#CRLF#20#CRLF#21#CRLF#22#CRLF#23#CRLF#24#CRLF#25#CRLF#26#CRLF#27#CRLF#28#CRLF#29#CRLF#30
TxtB=1#CRLF#2#CRLF#3#CRLF#4#CRLF#5#CRLF#6#CRLF#7#CRLF#8#CRLF#9#CRLF#10
OffsetY=0
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
---Meters---
[ContainerVisible]
Meter=Image
W=100
H=242
SolidColor=0,0,0,255
MouseScrollUpAction=[!SetVariable OffsetY (Clamp(#OffsetY#+16.1,[Container:H]-[Text:H],0))][!UpdateMeter *][!Redraw]
MouseScrollDownAction=[!SetVariable OffsetY (Clamp(#OffsetY#-16.1,[Container:H]-[Text:H],0))][!UpdateMeter *][!Redraw]
DynamicVariables=1
[Container]
Meter=Image
W=100
H=242
SolidColor=0,0,0,255
[Text]
Container=Container
Meter=String
FontFace=Tahoma
FontSize=10
Y=#OffsetY#
FontColor=255,255,255,255
Text=#TxtG#
DynamicVariables=1
P.S. Not sure about backward compatibility on this one, but I find it hard to believe someone would use the strange results of this case in a skin. I'm also not 100% sure of how a fix should be implemented, e.g. which value to choose between the invalid low and the invalid high ones. Hopefully you'll see this a bit clearer than I do at this time.