Button 1 toggle (show/hide) meter 1 and 0
Button 2 toggle (show/hide) meter 2 and 0
Meter 0 stays active by default when you don't hit the button
So I just set meter 1 and 2 as hidden so when you toggle meter 1 or 2 becomes non hidden and meter 0 comes hidden, nothing special.
How would I toggle between 1 and 2 instead (if meter 1 is active then when I want to switch to meter 2 it will overlap)? I am thinking of writing a conditional statement to test if meter 1 or 2 is hidden or not then show the corresponding meter.
How would I check if meter is hidden or not?
(all those meters are quotes)
Sometimes the quotes update 1 second after I toggle it, sometimes it uptades before. I would prefer when toggling between quotes I get a new quote when it gets shown, and not have to see it update.
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
@Include=#@#Variables.inc
Toggler=[!ToggleMeter "MeterChloeQuotes"][!ToggleMeter "MeterRegularQuotes"][!UpdateMeter "MeterChloeQuotes"][!UpdateMeter "MeterRegularQuotes"][!UpdateMeasure "MeasureChloeQuotes"][!UpdateMeasure "MeasureRegularQuotes"][!Redraw]
Toggler2=[!ToggleMeter "MeterMaxQuotes"][!ToggleMeter "MeterRegularQuotes"][!UpdateMeter "MeterMaxQuotes"][!UpdateMeter "MeterRegularQuotes"][!UpdateMeasure "MeasureMaxQuotes"][!UpdateMeasure "MeasureRegularQuotes"][!Redraw]
[Metadata]
Author=deXxterlab97
[MeasureMaxQuotes]
Measure=Plugin
Plugin=QuotePlugin
PathName=#@#Quotes\Max quotes\max-quotes.txt
UpdateDivider=60
[MeasureChloeQuotes]
Measure=Plugin
Plugin=QuotePlugin
PathName=#@#Quotes\Chloe quotes\chloe-quotes.txt
UpdateDivider=60
[MeasureRegularQuotes]
Measure=Plugin
Plugin=QuotePlugin
PathName=#@#Quotes\quote-list.txt
UpdateDivider=60
Separator=/
RegexpSubstitute=1
Substitute="^\r\n":""
[MeterRegularQuotes]
Meter=String
MeasureName=MeasureRegularQuotes
ClipStringW=870
ClipStringH=200
ClipString=2
FontFace=#FF#
FontColor=#FC#
FontSize=#FS#
AntiAlias=1
SolidColor=0,0,0,50
X=490
Y=270
[MeterChloeQuotes]
Meter=String
MeasureName=MeasureChloeQuotes
ClipStringW=870
ClipStringH=200
ClipString=2
FontFace=#FF#
FontColor=#FC#
FontSize=#FS#
AntiAlias=1
SolidColor=0,0,255,50
Hidden=1
X=490
Y=270
[MeterMaxQuotes]
Meter=String
MeasureName=MeasureMaxQuotes
ClipStringW=870
ClipStringH=200
ClipString=2
FontFace=#FF#
FontColor=#FC#
FontSize=#FS#
AntiAlias=1
SolidColor=255,51,153,50
Hidden=1
X=490
Y=270
[ChloeHead]
Meter=Image
X=295
Y=105
W=67
H=60
SolidColor=0,0,0,200
LeftMouseUpAction=#Toggler#
[ChloeBody1]
Meter=Image
X=265
Y=165
W=110
H=140
SolidColor=0,0,0,200
LeftMouseUpAction=#Toggler#
[ChloeBody2]
Meter=Image
X=275
Y=305
W=100
H=40
SolidColor=0,0,0,200
LeftMouseUpAction=#Toggler#
[ChloeBody3]
Meter=Image
X=280
Y=345
W=90
H=50
SolidColor=0,0,0,200
LeftMouseUpAction=#Toggler#
[ChloeBody4]
Meter=Image
X=290
Y=395
W=70
H=195
SolidColor=0,0,0,200
LeftMouseUpAction=#Toggler#
[MaxHead]
Meter=Image
X=388
Y=120
W=70
H=75
SolidColor=0,0,0,200
LeftMouseUpAction=#Toggler2#
[MaxBody1]
Meter=Image
X=380
Y=195
W=105
H=160
SolidColor=0,0,0,200
LeftMouseUpAction=#Toggler2#
[MaxBody2]
Meter=Image
X=400
Y=455
W=55
H=50
SolidColor=0,0,0,200
LeftMouseUpAction=#Toggler2#
[MaxBody3]
Meter=Image
X=385
Y=355
W=95
H=100
SolidColor=0,0,0,200
LeftMouseUpAction=#Toggler2#
[MaxBody4]
Meter=Image
X=400
Y=505
W=48
H=85
SolidColor=0,0,0,200
LeftMouseUpAction=#Toggler2#