xenium wrote: ↑November 15th, 2019, 2:16 pm
The problem has been solved !
i was unable to test anything in practice so far, but now even if you have solved it, i'd add this approach (if it's what you wanted to achieve):
with different group names:
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
MiddleMouseDownAction=[!Refresh]
Group=test
[Variables]
TestVar=0
[meterBg]
Meter=Shape
Shape=Rectangle 0,0,100,100,5 | Fill Color 0,0,0,120
[MeasureT1Min]
Measure=String
String=#TestVar#
IfMatch=0
IfMatchAction=[!ShowMeterGroup "T1"][!HideMeterGroup "T2"][!UpdateMeter *][!Redraw]
IfNotMatchAction=[!ShowMeterGroup "T2"][!HideMeterGroup "T1"][!UpdateMeter *][!Redraw]
[MeterT1Max]
Meter=String
FontColor=255,0,0
FontSize=8
Group=T2
Text=Max
x=10
y=10
Hidden=1
[MeterT1Min]
Meter=String
FontColor=255,0,0
FontSize=8
Group=T1
x=r
y=r
Text=Min
Hidden=1
[Button1]
Meter=Image
SolidColor=0,0,0
LeftMouseUpAction=[!WriteKeyValue "Variables" "TestVar" "0"][!SetVariable "TestVar" "0"][!RefreshGroup "test"]
X=10
Y=50
W=10
H=10
DynamicVariables=1
[Button2]
Meter=Image
LeftMouseUpAction=[!WriteKeyValue "Variables" "TestVar" "1"][!SetVariable "TestVar" "1"][!RefreshGroup "test"]
SolidColor=0,0,0
X=50
Y=r
W=10
H=10
DynamicVariables=1
with the same group names:
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
MiddleMouseDownAction=[!Refresh]
Group=test
[Variables]
TestVar=0
[meterBg]
Meter=Shape
Shape=Rectangle 0,0,100,100,5 | Fill Color 0,0,0,120
[MeasureT1Min]
Measure=String
String=#TestVar#
IfMatch=0
IfMatchAction=[!ShowMeter "MeterT1Min"][!HideMeter "MeterT1Max"]
IfNotMatchAction=[!HideMeter "MeterT1Min"][!ShowMeter "MeterT1Max"]
[MeterT1Max]
Meter=String
FontColor=255,0,0
FontSize=8
Group=T1
Text=Max
x=10
y=10
Hidden=1
[MeterT1Min]
Meter=String
FontColor=255,0,0
FontSize=8
Group=T1
x=r
y=r
Text=Min
Hidden=1
[Button1]
Meter=Image
SolidColor=0,0,0
LeftMouseUpAction=[!WriteKeyValue "Variables" "TestVar" "0"][!SetVariable "TestVar" "0"][!RefreshGroup "test"]
X=10
Y=50
W=10
H=10
DynamicVariables=1
[Button2]
Meter=Image
LeftMouseUpAction=[!WriteKeyValue "Variables" "TestVar" "1"][!SetVariable "TestVar" "1"][!RefreshGroup "test"]
SolidColor=0,0,0
X=50
Y=r
W=10
H=10
DynamicVariables=1