I have a usage meter that displays my Internet usage - days remaining till rollover date and amount of data used. These are bar graphs.
What I would like to do is NOT show the data used bar meter if the included allowance for the month is Unlimited.
Is it possible to do this?
It is currently March 28th, 2024, 7:01 pm
Display Bar Meter only if a meter is above a certain value
-
- Posts: 42
- Joined: December 27th, 2016, 1:32 am
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Display Bar Meter only if a meter is above a certain value
I suppose you're talking about the same skin as that in the "Displaying a string" thread.
So, please post the code. Probably IfCondition(s) have to be used, but would be good to see the code.
So, please post the code. Probably IfCondition(s) have to be used, but would be good to see the code.
-
- Posts: 42
- Joined: December 27th, 2016, 1:32 am
Re: Display Bar Meter only if a meter is above a certain value
Yes I did the other thread as well. See my post there for a link to the full code.
I actually fixed this one by adding this to the meter (IfCondition9):
I actually fixed this one by adding this to the meter (IfCondition9):
Code: Select all
[MeasureQuotaUsedBar]
Measure=Calc
IfCondition=(MeasureQuotaPerDayRemaining - MeasureQuotaPerDayStart >= 0 ) && ([BarStyle] = 13)
IfTrueAction=[!SetOption MeterQuotaUsedBar BarImage "#imageBarData5px#"][!UpdateMeter "MeterQuotaUsedBar"][!Redraw]
IfCondition2=(MeasureQuotaPerDayRemaining - MeasureQuotaPerDayStart < 0 ) && ([BarStyle] = 13)
IfTrueAction2=[!SetOption MeterQuotaUsedBar BarImage "#imageBarDataOver5px#"][!UpdateMeter "MeterQuotaUsedBar"][!Redraw]
IfCondition3=(MeasureQuotaPerDayRemaining - MeasureQuotaPerDayStart >= 0 ) && ([BarStyle] = 14)
IfTrueAction3=[!SetOption MeterQuotaUsedBar BarImage "#imageBarData8px#"][!UpdateMeter "MeterQuotaUsedBar"][!Redraw]
IfCondition4=(MeasureQuotaPerDayRemaining - MeasureQuotaPerDayStart < 0 ) && ([BarStyle] = 14)
IfTrueAction4=[!SetOption MeterQuotaUsedBar BarImage "#imageBarDataOver8px#"][!UpdateMeter "MeterQuotaUsedBar"][!Redraw]
IfCondition5=(MeasureQuotaPerDayRemaining - MeasureQuotaPerDayStart >= 0 ) && ([BarStyle] = 11)
IfTrueAction5=[!SetOption MeterQuotaUsedBar BarColor "#colorBarData#"][!UpdateMeter "MeterQuotaUsedBar"][!Redraw]
IfCondition6=(MeasureQuotaPerDayRemaining - MeasureQuotaPerDayStart < 0 ) && ([BarStyle] = 11)
IfTrueAction6=[!SetOption MeterQuotaUsedBar BarColor "#colorBarOver#"][!UpdateMeter "MeterQuotaUsedBar"][!Redraw]
IfCondition7=(MeasureQuotaPerDayRemaining - MeasureQuotaPerDayStart >= 0 ) && ([BarStyle] = 12)
IfTrueAction7=[!SetOption MeterQuotaUsedBar BarColor "#colorBarData#"][!UpdateMeter "MeterQuotaUsedBar"][!Redraw]
IfCondition8=(MeasureQuotaPerDayRemaining - MeasureQuotaPerDayStart < 0 ) && ([BarStyle] = 12)
IfTrueAction8=[!SetOption MeterQuotaUsedBar BarColor "#colorBarOver#"][!UpdateMeter "MeterQuotaUsedBar"][!Redraw]
IfCondition9=(MeasureAllowanceGB > 99999)
IfTrueAction9=[!HideMeter "MeterQuotaUsedBar"][!Redraw]
[MeterQuotaUsedBar]
Meter=Bar
MeterStyle=styleBar
MeasureName=MeasureTotalUsedBar
BarOrientation=Horizontal
ImageAlpha=180
Flip=0
X=13
Y=17r
W=183
H=[BarSize]
Last edited by fonpaolo on May 14th, 2018, 11:05 am, edited 1 time in total.
Reason: Please use the [Code] tags to post your code.
Reason: Please use the [Code] tags to post your code.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Display Bar Meter only if a meter is above a certain value
So finally did you get it to work properly?DavidFw1960 wrote:I actually fixed this one by adding this to the meter (IfCondition9):
-
- Posts: 42
- Joined: December 27th, 2016, 1:32 am
Re: Display Bar Meter only if a meter is above a certain value
Yes it's all working thanks.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania