I'm not sure the whole of it need, just don't seem ok to have a measure for the free and another for the used disk and have conditions on both of them. I'll see a bit later...Pul53dr1v3r wrote:Unbeliveable that the whole skin need to be touched.
It is currently April 20th, 2024, 1:20 am
Refreshing issue
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Refreshing issue
-
- Posts: 18
- Joined: February 17th, 2018, 11:08 pm
Re: Refreshing issue
Different approach, similar result.
Code: Select all
[Rainmeter]
Update=250
[Variables]
HDD1=P:
UsedColor=0,120,255
WarnColor=255,120,0
TotalColor=0,0,0
[DiskLabel]
AntiAlias=1
FontColor=0,0,0
SolidColor=0,0,0,1
AutoScale=1
[mDiskUsed]
Measure=FreeDiskSpace
Drive=#HDD1#
InvertMeasure=1
[mDiskFree]
Measure=FreeDiskSpace
Drive=#HDD1#
[mDiskTotal]
Measure=FreeDiskSpace
Drive=#HDD1#
Total=1
[DiskUsed]
Meter=String
MeasureName=mDiskUsed
MeterStyle=DiskLabel
Text="%1B Used"
LeftMouseUpAction=[!HideMeter DiskUsed][!ShowMeter DiskFree][!SetOption mDiskBarFree Disabled 0][!SetOption mDiskBarUsed Disabled 1][!SetOption DiskBarUsed BarColor #TotalColor#]
[DiskFree]
Hidden=1
Meter=String
MeasureName=mDiskFree
MeterStyle=DiskLabel
Text="%1B Free"
LeftMouseUpAction=[!HideMeter DiskFree][!ShowMeter DiskUsed][!Refresh]
[DiskTotal]
x=200
Meter=String
MeasureName=mDiskTotal
MeterStyle=DiskLabel
StringAlign=Right
Text=Total: %1B
[DiskBarTotal]
Y=15
W=200
H=10
Meter=Bar
MeasureName=mDiskTotal
MeasureName=mDiskBarFree
BarOrientation=Horizontal
BarColor=#TotalColor#
[DiskBarUsed]
Y=15
W=200
H=10
Meter=Bar
MeasureName=mDiskUsed
MeasureName=mDiskBarUsed
BarOrientation=Horizontal
DynamicVariables=1
[mDiskBarUsed]
Disabled=0
Measure=Calc
Formula=(mDiskUsed/mDiskTotal)*100
IfCondition=(mDiskBarUsed >=70)
IfTrueAction=[!SetOption DiskBarUsed BarColor #WarnColor#]
IfTrueAction2=[!SetOption DiskBarTotal BarColor #TotalColor#]
IfFalseAction=[!SetOption DiskBarUsed BarColor #UsedColor#]
[mDiskBarFree]
Disabled=1
Measure=Calc
Formula=(mDiskFree/mDiskTotal)*100
IfCondition=(mDiskBarFree <=30)
IfTrueAction=[!SetOption DiskBarTotal BarColor #WarnColor#]
IfFalseAction=[!SetOption DiskBarTotal BarColor #UsedColor#]
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Refreshing issue
Ok, I rewrote a few things in your code, here is what I got:
I've made the following modifications:
Code: Select all
[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Background=#@#Background.png
; #@# is equal to Rainmeter\Skins\illustro Pulsar xx\@Resources
BackgroundMode=3
BackgroundMargins=0,34,0,13
Update=1000
AccurateText=1
[Metadata]
Author=Pul53dr1v3r
; Contains basic information of the skin.
Description=Displays disk usage.
[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
FontFamily=Trebuchet MS
textSize=8
colorBar=255,140,0,200
ColorR=255,140,0,200
colorText=255,255,255,205
EmptyBarColor=255,255,255,25
HD1=F:
; UpdateInterval is set to divide update time of Disk Drive Label, Used and Total space
UpdateInterval=1
SkinState=1
DiskMeasureState=1
;[""""""""""""""""""""""""""""""[[Styles]]""""""""""""""""""""""""""""""]
[styleTitle]
StringAlign=CENTER
StringStyle=Bold
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#FontFamily#
FontSize=10
AntiAlias=1
ClipString=1
[styleCenterText]
StringAlign=Center
StringCase=NONE
StringStyle=BOLD
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#FontFamily#
FontSize=8
AntiAlias=1
;ClipString=1
[styleLeftText]
StringAlign=LEFT
; Meters using styleLeftText will be left-aligned.
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#FontFamily#
FontSize=8
AntiAlias=1
[styleRightText]
StringAlign=RIGHT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#FontFamily#
FontSize=8
AntiAlias=1
;[""""""""""""""""""""""""""""""[[Title]]""""""""""""""""""""""""""""""]
[meterTitle]
Meter=STRING
MeterStyle=styleTitle
MeasureName=MeasureDiskLabel
X=104
Y=12
W=159
H=28
Text=%1(#HD1#)
LeftMouseUpAction=[#HD1#]
MouseOverAction=[!SetOption meterTitle FontColor "#ColorR#"][!SetOption meterTitle Text "OPEN"][!UpdateMeter "meterTitle"][!Redraw]
MouseLeaveAction=[!SetOption meterTitle FontColor "#colorText#"][!SetOption meterTitle Text "%1(#HD1#)"][!UpdateMeter "meterTitle"][!Redraw]
DynamicVariables=1
;[""""""""""""""""""""""""""""""[[Disk_Usage]]""""""""""""""""""""""""""""""]
[measureDiskMeasureState]
Measure=Calc
Formula=#DiskMeasureState#
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!ShowMeterGroup "UsedHD1"][!HideMeterGroup "FreeHD1"][!Redraw]
IfFalseAction=[!ShowMeterGroup "FreeHD1"][!HideMeterGroup "UsedHD1"][!Redraw]
;IfTrueAction=[!ShowMeterGroup "UsedHD1"][!HideMeterGroup "FreeHD1"][!DisableMeasure "measureFreeHD1"][!EnableMeasure "measureUsedHD1"][!Update]
;IfFalseAction=[!ShowMeterGroup "FreeHD1"][!HideMeterGroup "UsedHD1"][!DisableMeasure "measureUsedHD1"][!EnableMeasure "measureFreeHD1"][!Update]
DynamicVariables=1
[meterUsedHD1]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureUsedHD1
X=10
Y=40
Text=Used: %1B
Hidden=1
NumOfDecimals=1
Autoscale=1
Group=UsedHD1
LeftMouseUpAction=[!SetVariable DiskMeasureState "1"][!WriteKeyValue Variables DiskMeasureState "1"][!UpdateMeasure "measureDiskMeasureState"]
MouseOverAction=[!SetOption meterUsedHD1 FontColor "#ColorR#"][!UpdateMeter "meterUsedHD1"][!Redraw]
MouseLeaveAction=[!SetOption meterUsedHD1 FontColor "#colorText#"][!UpdateMeter "meterUsedHD1"][!Redraw]
Hidden=1
[meterFreeHD1]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureFreeHD1
X=10
Y=40
Text=Free: %1B
Hidden=1
NumOfDecimals=1
Autoscale=1
Group=FreeHD1
LeftMouseUpAction=[!SetVariable DiskMeasureState "0"][!WriteKeyValue Variables DiskMeasureState "0"][!UpdateMeasure "measureDiskMeasureState"]
MouseOverAction=[!SetOption meterFreeHD1 FontColor "#ColorR#"][!UpdateMeter "meterFreeHD1"][!Redraw]
MouseLeaveAction=[!SetOption meterFreeHD1 FontColor "#colorText#"][!UpdateMeter "meterFreeHD1"][!Redraw]
Hidden=1
[MeasureDiskLabel]
Measure=FreeDiskSpace
Drive=#HD1#
Label=1
IgnoreRemovable=0
UpdateDivider=#UpdateInterval#
[meterValueHD1]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUsedHD1
MeasureName2=measureTotalHD1
X=199
Y=r
Text=Total: %2B
NumOfDecimals=1
AutoScale=1
[meterUsedBarHD1]
Meter=BAR
MeasureName=measureUsedHD1
;BarColor=[UsedBarWarn]
SolidColor=255,255,255,25
X=10
Y=52
W=190
H=1
Flip=0
BarOrientation=HORIZONTAL
DynamicVariables=1
Group=UsedHD1
Hidden=1
[meterFreeBarHD1]
Meter=BAR
MeasureName=measureFreeHD1
;BarColor=[FreeBarWarn]
SolidColor=255,255,255,25
X=0r
Y=0r
W=190
H=1
Flip=1
BarOrientation=HORIZONTAL
DynamicVariables=1
Group=FreeHD1
Hidden=1
[meterBarEmptyHD1]
Meter=Image
SolidColor=#EmptyBarColor#
X=0r
Y=0r
W=190
H=1
Hidden=1
[UsedBarWarn]
Measure=Calc
Formula=(( DriveUsagePercent > 75 ) ? -1 : -2 )
IfCondition=(#CURRENTSECTION#=-1)
IfTrueAction=[!SetOption meterUsedBarHD1 BarColor "220,20,60,200"][!SetOption meterFreeBarHD1 BarColor "220,20,60,200"][!UpdateMeter "meterUsedBarHD1"][!UpdateMeter "meterUsedBarHD1"][!Redraw]
IfFalseAction=[!SetOption meterUsedBarHD1 BarColor "#colorBar#"][!SetOption meterFreeBarHD1 BarColor "192,192,192,200"][!UpdateMeter "meterUsedBarHD1"][!UpdateMeter "meterUsedBarHD1"][!Redraw]
;Substitute="-1":"220,20,60,200","-2":"#colorBar#"
;[FreeBarWarn]
;Measure=Calc
;Formula=(( DriveFreePercent < 25 ) ? -1 : -2 )
;IfCondition=(#CURRENTSECTION#=-1)
;IfTrueAction=[!SetOption meterFreeBarHD1 BarColor "220,20,60,200"][!UpdateMeter "meterUsedBarHD1"][!Redraw]
;IfFalseAction=[!SetOption meterFreeBarHD1 BarColor "192,192,192,200"][!UpdateMeter "meterUsedBarHD1"][!Redraw]
;Substitute="-1":"220,20,60,200","-2":"192,192,192,200"
[DriveUsagePercent]
Measure=Calc
Formula=( measureUsedHD1 * 100 / ( measureTotalHD1 + 0.000001 ))
MinValue=0
MaxValue=100
[DriveFreePercent]
Measure=Calc
Formula=( measureFreeHD1 * 100 / ( measureTotalHD1 + 0.000001 ))
MinValue=0
MaxValue=100
[measureTotalHD1]
Measure=FreeDiskSpace
Drive=#HD1#
Total=1
IgnoreRemovable=0
UpdateDivider=#UpdateInterval#
[measureUsedHD1]
Measure=FreeDiskSpace
Drive=#HD1#
InvertMeasure=1
IgnoreRemovable=0
;IfCondition=measureUsedHD1=0
;IfTrueAction=[!HideMeter "meterUsedBarHD1"][!ShowMeter "meterBarEmptyHD1"]
;IfFalseAction=[!ShowMeter "meterUsedBarHD1"][!HideMeter "meterBarEmptyHD1"]
UpdateDivider=#UpdateInterval#
Group=UsedHD1
Hidden=1
[measureFreeHD1]
Measure=FreeDiskSpace
Drive=#HD1#
;InvertMeasure=0
IgnoreRemovable=0
;IfCondition=measureFreeHD1=0
;IfTrueAction=[!HideMeter "meterFreeBarHD1"][!ShowMeter "meterBarEmptyHD1"]
;IfFalseAction=[!ShowMeter "meterFreeBarHD1"][!HideMeter "meterBarEmptyHD1"]
UpdateDivider=#UpdateInterval#
Group=FreeHD1
Hidden=1
;[""""""""""""""""""""""""""""""[[Reading]]""""""""""""""""""""""""""""""]
;For the graph
[MeasureHD1DiskReads]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Reads/sec
PerfMonInstance=#HD1#
PerfMonDifference=1
IfEqualValue=0
IfEqualAction=[!SetOption meterReadCircle1 ImageTint "255,255,255,100"][!SetOption meterReadCircle2 ImageTint "255,255,255,100"]
IfAboveValue=0
IfAboveAction=[!SetOption meterReadCircle1 ImageTint "204,0,0,255"][!SetOption meterReadCircle2 ImageTint "204,0,0,255"]
Group=measureRW
;for the string
[MeasureHD1DiskReadsSec]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#HD1#
[MeterHD1ReadSpeedLabel]
Meter=String
MeterStyle=styleLeftText
FontColor=255,255,255,50
X=27
Y=56
Text=Read:
[MeterHD1ReadSpeed]
Meter=String
MeasureName=MeasureHD1DiskReadsSec
MeterStyle=styleRightText
FontColor=255,255,255,50
X=196
Y=r
Autoscale=1
[MeterReadLine]
Meter=Histogram
MeasureName=MeasureHD1DiskReads
GraphStart=Left
X=27
;Y=58
W=170
H=25
Autoscale=1
Antialias=1
PrimaryColor=176,196,222,150
SolidColor=255,255,255,15
Group=Graph
;[""""""""""""""""""""""""""""""[[Writing]]""""""""""""""""""""""""""""""]
;For the graph
[MeasureHD1DiskWrites]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Writes/sec
PerfMonInstance=#HD1#
PerfMonDifference=1
IfEqualValue=0
IfEqualAction=[!SetOption meterWriteCircle1 ImageTint "255,255,255,100"][!SetOption meterWriteCircle2 ImageTint "255,255,255,100"]
IfAboveValue=0
IfAboveAction=[!SetOption meterWriteCircle1 ImageTint "204,0,0,255"][!SetOption meterWriteCircle2 ImageTint "255,0,0,255"]
Group=measureRW
;for the string
[MeasureHD1DiskWritesSec]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#HD1#
[MeterHD1WritesSpeedLabel]
Meter=String
MeterStyle=styleLeftText
FontColor=255,255,255,50
X=[MeterHD1ReadSpeedLabel:X]
Y=80
Text=Write:
[MeterHD1WritesSpeed]
Meter=String
MeasureName=MeasureHD1DiskWritesSec
MeterStyle=styleRightText
FontColor=255,255,255,50
X=196
Y=r
Autoscale=1
[MeterWriteLine]
Meter=Histogram
MeasureName=MeasureHD1DiskWrites
GraphStart=Left
X=[MeterReadLine:X]
;Y=([MeterReadLine:Y]+26)
W=[MeterReadLine:W]
H=25
Autoscale=1
Antialias=1
PrimaryColor=176,196,222,150
SolidColor=255,255,255,15
Group=Graph
;[""""""""""""""""""""""""""""""[[Activity_Indicators]]""""""""""""""""""""""""""""""]
[meterReadCircle1]
Meter=image
ImageName=#@#Images\Arrow.png
X=11
;Y=65
Group=Graph
[meterWriteCircle1]
Meter=image
ImageName=#@#Images\Arrow.png
X=r
;Y=21r
ImageFlip=VERTICAL
Group=Graph
;[""""""""""""""""""""""""""""""[[Collapse-Expand]]""""""""""""""""""""""""""""""]
[meterHideGraphs]
Meter=Button
ButtonImage=#@#Images\left.png
X=185
Y=15
ImageTint=255,255,255,150
LeftMouseUpAction=[!SetVariable SkinState "0"][!WriteKeyValue Variables SkinState "0"][!UpdateMeasure "MeasureSkinState"]
TooltipText=Hide graph
[meterShowGraphs]
Meter=Button
ButtonImage=#@#Images\right.png
X=r
Y=r
ImageTint=255,255,255,150
LeftMouseUpAction=[!SetVariable SkinState "1"][!WriteKeyValue Variables SkinState "1"][!UpdateMeasure "MeasureSkinState"]
TooltipText=Show graph
Hidden=1
[MeasureSkinState]
Measure=Calc
Formula=#SkinState#
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideMeterGroup "Graph"][!ShowMeter "meterShowGraphs"][!HideMeter "meterHideGraphs"][!SetOption MeterHD1ReadSpeedLabel X "10"][!SetOption MeterHD1WritesSpeedLabel X "10"][!SetOption MeterHD1WritesSpeedLabel Y "69"][!DisableMeasureGroup "measureRW"][!SetOption MeterReadLine Y "1"][!SetOption MeterWriteLine Y "1"][!SetOption meterReadCircle1 Y "1"][!SetOption meterWriteCircle1 Y "1"][!Update]
IfFalseAction=[!ShowMeterGroup "Graph"][!HideMeter "meterShowGraphs"][!ShowMeter "meterHideGraphs"][!SetOption MeterHD1ReadSpeedLabel X "27"][!SetOption MeterHD1WritesSpeedLabel X "27"][!SetOption MeterHD1WritesSpeedLabel Y "82"][!EnableMeasureGroup "measureRW"][!SetOption MeterReadLine Y "58"][!SetOption MeterWriteLine Y "84"][!SetOption meterReadCircle1 Y "65"][!SetOption meterWriteCircle1 Y "86"][!Update]
DynamicVariables=1
- I completely removed the [FreeBarWarn] Calc measure (well, in fact I just commented it out for now), leaving just the [UsedBarWarn] measure. Are not needed both of them, they doing the same calculation, in fact.
- I also removed (commented out) the set of the IfCondition options of the [measureUsedHD1] and [measureFreeHD1] measure. It doesn't seem a good idea to have two different places where to show / hide the same set of meters (these measures, respectively the IfTrueAction / IfFalseAction options of the [measureDiskMeasureState] measure - even if these options are hiding / showing the meters belonging to the UsedHD1 / FreeHD1 groups).
- I rewrote the IfTrueAction / IfFalseAction options of the [measureDiskMeasureState] measure, to avoid disabling the [measureFreeHD1] and the [measureUsedHD1] measure. Doesn't seems to be worth to disable any of them. Me at least leaved them enabled all the time.
- I removed (again, commented out) the BarColor options of the [meterUsedBarHD1] and [meterFreeBarHD1] meters and setting their colors through !SetOption bangs, added to the IfTrueAction and IfFalseAction options of the kept [UsedBarWarn] measure. This approach looks more familiar to me (don't think the original approach couldn't work - it probably works completely well, but I don't like it - sorry, but this is one of my "fixed" ideas, which I can't give up).
- I moved the Author option from the [Rainmeter] section to [Metadata]. Newly this option belongs to [Metadata] section, being deprecated on [Rainmeter].
- I removed the deprecated AppVersion option from the [Rainmeter] section.
- I removed the quotations around the values of a lot of options, in different sections of the skin: https://forum.rainmeter.net/viewtopic.php?p=137628#p137628.
- I also removed a lot of quotations around a lot of parameters in many bangs.
-
- Posts: 442
- Joined: July 30th, 2014, 10:30 am
Re: Refreshing issue
Tested the solution and working fine with drive in. You just ommited [meterBarEmptyHD1] that's in charge of giving the bar color when no drive inserted. Our old thread about it: link
And one more thing, if we want to be pedant. On a manual refresh this appears, though i could live with it: Looks like some buggy bang.
And one more thing, if we want to be pedant. On a manual refresh this appears, though i could live with it: Looks like some buggy bang.
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Refreshing issue
You're right about this, I'm sorry. I was a bit careless.Pul53dr1v3r wrote:Tested the solution and working fine with drive in. You just ommited [meterBarEmptyHD1] that's in charge of giving the bar color when no drive inserted. Our old thread about it: link
So, to fix this, just put back the set of previously commented out IfCondition options, on the [measureUsedHD1] measure:
Code: Select all
[measureUsedHD1]
Measure=FreeDiskSpace
Drive=#HD1#
InvertMeasure=1
IgnoreRemovable=0
IfCondition=measureUsedHD1=0
IfTrueAction=[!HideMeter "meterUsedBarHD1"][!ShowMeter "meterBarEmptyHD1"]
IfFalseAction=[!ShowMeter "meterUsedBarHD1"][!HideMeter "meterBarEmptyHD1"]
UpdateDivider=#UpdateInterval#
Group=UsedHD1
What kind of drive is your F:? I think it should have to be a CD drive. Is it or it's a removable drive?Pul53dr1v3r wrote:And one more thing, if we want to be pedant. On a manual refresh this appears, though i could live with it: bang_10.jpg Looks like some buggy bang.
If it's a CD drive, weird is that in these cases the skin shouldn't have to show nor the used disk space.
-
- Posts: 442
- Joined: July 30th, 2014, 10:30 am
Re: Refreshing issue
Ok, now it hides [measureUsedHD1] only, not [measureFreeHD1]. If we remove the drive, and the skin is set to displays "Free:" label, whole the bar will be grey (color of meterFreeBarHD1) instead of EmptyBarColor=255,255,255,25 (very transparent white).
A bit complicated, just because of EmptyBarColor.
About "F:". It's a removable drive, an USB flash memory. It displays Total: 0.0 B due to a "bug" that mess up the order of the skin, only during refreshing for very short time (in miliseconds), then returns the real value. Nothing so serious but...
It didn't happen with the old code.
A bit complicated, just because of EmptyBarColor.
About "F:". It's a removable drive, an USB flash memory. It displays Total: 0.0 B due to a "bug" that mess up the order of the skin, only during refreshing for very short time (in miliseconds), then returns the real value. Nothing so serious but...
It didn't happen with the old code.
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Refreshing issue
It shows the bar with the color set through the IfTrueAction / IfFalseAction options of the [UsedBarWarn] measure. You can change the used colors there.Pul53dr1v3r wrote:If we remove the drive, and the skin is set to displays "Free:" label, whole the bar will be grey (color of meterFreeBarHD1) instead of EmptyBarColor=255,255,255,25 (very transparent white).
A bit complicated, just because of EmptyBarColor.
For an USB flash memory I don't see this behavior. When I manually refresh the skin, the correct value is shown from the very first moment. Initially the bar is red, then after one update cycle it turn orange, but the used space is shown correctly from the beginning.Pul53dr1v3r wrote:About "F:". It's a removable drive, an USB flash memory. It displays Total: 0.0 B due to a "bug" that mess up the order of the skin, only during refreshing for very short time (in miliseconds), then returns the real value. Nothing so serious but...
It didn't happen with the old code.
-
- Posts: 442
- Joined: July 30th, 2014, 10:30 am
Re: Refreshing issue
I succeeded to solve the bang bug removing [!Redraw]s from [UsedBarWarn] measure without any bad consequence.
The issues still exist are there. Enabling
of [measureUsedHD1] measure brings about next: video.
So, when we toggle (with a click) to "Free:" measure and refresh the skin, 1st bar color issue appears (Used and Free bar colors are displayed at the same time). Then, after we remove the removable drive, the bar keeps the grey color of meterFreeBarHD1 measure instead of to hide that and shows up the Empty bar ([meterBarEmptyHD1]).
The issues still exist are there. Enabling
Code: Select all
IfCondition=measureUsedHD1=0
IfTrueAction=[!HideMeter "meterUsedBarHD1"][!ShowMeter "meterBarEmptyHD1"]
IfFalseAction=[!ShowMeter "meterUsedBarHD1"][!HideMeter "meterBarEmptyHD1"]
So, when we toggle (with a click) to "Free:" measure and refresh the skin, 1st bar color issue appears (Used and Free bar colors are displayed at the same time). Then, after we remove the removable drive, the bar keeps the grey color of meterFreeBarHD1 measure instead of to hide that and shows up the Empty bar ([meterBarEmptyHD1]).
-
- Posts: 442
- Joined: July 30th, 2014, 10:30 am
Re: Refreshing issue
Thanks for that, i'll consder if there is anything usefull for the case. Thx.ChicknwithNoName wrote:Different approach, similar result.
Code: Select all
[Rainmeter] Update=250 [Variables] HDD1=P: UsedColor=0,120,255 WarnColor=255,120,0 TotalColor=0,0,0 [DiskLabel] AntiAlias=1 FontColor=0,0,0 SolidColor=0,0,0,1 AutoScale=1 [mDiskUsed] Measure=FreeDiskSpace Drive=#HDD1# InvertMeasure=1 [mDiskFree] Measure=FreeDiskSpace Drive=#HDD1# [mDiskTotal] Measure=FreeDiskSpace Drive=#HDD1# Total=1 [DiskUsed] Meter=String MeasureName=mDiskUsed MeterStyle=DiskLabel Text="%1B Used" LeftMouseUpAction=[!HideMeter DiskUsed][!ShowMeter DiskFree][!SetOption mDiskBarFree Disabled 0][!SetOption mDiskBarUsed Disabled 1][!SetOption DiskBarUsed BarColor #TotalColor#] [DiskFree] Hidden=1 Meter=String MeasureName=mDiskFree MeterStyle=DiskLabel Text="%1B Free" LeftMouseUpAction=[!HideMeter DiskFree][!ShowMeter DiskUsed][!Refresh] [DiskTotal] x=200 Meter=String MeasureName=mDiskTotal MeterStyle=DiskLabel StringAlign=Right Text=Total: %1B [DiskBarTotal] Y=15 W=200 H=10 Meter=Bar MeasureName=mDiskTotal MeasureName=mDiskBarFree BarOrientation=Horizontal BarColor=#TotalColor# [DiskBarUsed] Y=15 W=200 H=10 Meter=Bar MeasureName=mDiskUsed MeasureName=mDiskBarUsed BarOrientation=Horizontal DynamicVariables=1 [mDiskBarUsed] Disabled=0 Measure=Calc Formula=(mDiskUsed/mDiskTotal)*100 IfCondition=(mDiskBarUsed >=70) IfTrueAction=[!SetOption DiskBarUsed BarColor #WarnColor#] IfTrueAction2=[!SetOption DiskBarTotal BarColor #TotalColor#] IfFalseAction=[!SetOption DiskBarUsed BarColor #UsedColor#] [mDiskBarFree] Disabled=1 Measure=Calc Formula=(mDiskFree/mDiskTotal)*100 IfCondition=(mDiskBarFree <=30) IfTrueAction=[!SetOption DiskBarTotal BarColor #WarnColor#] IfFalseAction=[!SetOption DiskBarTotal BarColor #UsedColor#]
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Refreshing issue
I didn't understand what you want to tell by those two posted videos. Could you describe what problem is now?