It is currently April 27th, 2024, 7:12 pm

Total HDD Status bar

Get help with creating, editing & fixing problems with skins
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Total HDD Status bar

Post by TweaknFreak »

In my skin I've a config to show the percentage each partition has on the total HDD space. But I cannot think of the required code. All i did was to add each Measure of each partition which calculates space of each partition but I'm lost in the place where I will calculate the percentage of each. Please help.Here's some of the working codes :-

Code: Select all

[HDD1]
Meter=Image
ImageName=hdd.png
X=235
Y=224
AntiAlias=1
Hidden=0


[HDD1Access]
Measure=Plugin
Plugin=Plugins\PerfMon.dll
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Bytes/sec"
PerfMonInstance="G:"


[HDD1Used]
Measure=FreeDiskSpace
Drive=G:
InvertMeasure=1


[HDD1AccessBar]
Meter=Bar
BarImage=access.png
MeasureName=HDD1Access
X=235
Y=224
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1
UpdateDivider=5


[HDD1UsedBar]
Meter=Bar
BarImage=access bar.png
MeasureName=HDD1Used
X=254
Y=233
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1


[HDD1Label]
Meter=STRING
X=254
Y=242
Text="G"
FontFace=Chintzy CPU BRK
StringStyle=NORMAL
FontColor=15,160,250,255
FontSize=14
StringAlign=LEFT
AntiAlias=1
Hidden=0
LeftMouseDownAction=!Execute [G:\]


[HDD2]
Meter=Image
ImageName=hdd.png
X=280
Y=195
AntiAlias=1
Hidden=0


[HDD2Access]
Measure=Plugin
Plugin=Plugins\PerfMon.dll
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Bytes/sec"
PerfMonInstance="F:"


[HDD2Used]
Measure=FreeDiskSpace
Drive=F:
InvertMeasure=1


[HDD2AccessBar]
Meter=Bar
BarImage=access.png
MeasureName=HDD2Access
X=280
Y=195
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1
UpdateDivider=5


[HDD2UsedBar]
Meter=Bar
BarImage=access bar.png
MeasureName=HDD2Used
X=299
Y=204
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1


[HDD2Label]
Meter=STRING
X=299
Y=213
Text="F"
FontFace=Chintzy CPU BRK
StringStyle=NORMAL
FontColor=15,160,250,255
FontSize=14
StringAlign=LEFT
AntiAlias=1
Hidden=0
LeftMouseDownAction=!Execute [F:\]


[HDD3]
Meter=Image
ImageName=hdd.png
X=330
Y=177
AntiAlias=1
Hidden=0


[HDD3Access]
Measure=Plugin
Plugin=Plugins\PerfMon.dll
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Bytes/sec"
PerfMonInstance="D:"


[HDD3Used]
Measure=FreeDiskSpace
Drive=D:
InvertMeasure=1


[HDD3AccessBar]
Meter=Bar
BarImage=access.png
MeasureName=HDD3Access
X=330
Y=177
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1
UpdateDivider=5


[HDD3UsedBar]
Meter=Bar
BarImage=access bar.png
MeasureName=HDD3Used
X=349
Y=186
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1


[HDD3Label]
Meter=STRING
X=349
Y=195
Text="D"
FontFace=Chintzy CPU BRK
StringStyle=NORMAL
FontColor=15,160,250,255
FontSize=14
StringAlign=LEFT
AntiAlias=1
Hidden=0
LeftMouseDownAction=!Execute [D:\]


[HDD4]
Meter=Image
ImageName=hdd.png
X=385
Y=171
AntiAlias=1
Hidden=0


[HDD4Access]
Measure=Plugin
Plugin=Plugins\PerfMon.dll
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Bytes/sec"
PerfMonInstance="C:"


[HDD4Used]
Measure=FreeDiskSpace
Drive=C:
InvertMeasure=1


[HDD4AccessBar]
Meter=Bar
BarImage=access.png
MeasureName=HDD4Access
X=385
Y=171
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1
UpdateDivider=5


[HDD4UsedBar]
Meter=Bar
BarImage=access bar.png
MeasureName=HDD4Used
X=404
Y=180
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1


[HDD4Label]
Meter=STRING
X=404
Y=189
Text="C"
FontFace=Chintzy CPU BRK
StringStyle=NORMAL
FontColor=15,160,250,255
FontSize=14
StringAlign=LEFT
AntiAlias=1
Hidden=0
LeftMouseDownAction=!Execute [C:\]


[HDD5]
Meter=Image
ImageName=hdd.png
X=440
Y=177
AntiAlias=1
Hidden=0


[HDD5Access]
Measure=Plugin
Plugin=Plugins\PerfMon.dll
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Bytes/sec"
PerfMonInstance="E:"


[HDD5Used]
Measure=FreeDiskSpace
Drive=E:
InvertMeasure=1


[HDD5AccessBar]
Meter=Bar
BarImage=access.png
MeasureName=HDD5Access
X=440
Y=177
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1
UpdateDivider=5


[HDD5UsedBar]
Meter=Bar
BarImage=access bar.png
MeasureName=HDD5Used
X=459
Y=186
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1


[HDD5Label]
Meter=STRING
X=459
Y=195
Text="E"
FontFace=Chintzy CPU BRK
StringStyle=NORMAL
FontColor=15,160,250,255
FontSize=14
StringAlign=LEFT
AntiAlias=1
Hidden=0
LeftMouseDownAction=!Execute [E:\]


[HDD6]
Meter=Image
ImageName=hdd.png
X=490
Y=196
AntiAlias=1
Hidden=0


[HDD6Access]
Measure=Plugin
Plugin=Plugins\PerfMon.dll
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Bytes/sec"
PerfMonInstance="H:"


[HDD6Used]
Measure=FreeDiskSpace
Drive=H:
InvertMeasure=1


[HDD6AccessBar]
Meter=Bar
BarImage=access.png
MeasureName=HDD6Access
X=490
Y=196
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1
UpdateDivider=5


[HDD6UsedBar]
Meter=Bar
BarImage=access bar.png
MeasureName=HDD6Used
X=509
Y=205
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1


[HDD6Label]
Meter=STRING
X=509
Y=214
Text="H"
FontFace=Chintzy CPU BRK
StringStyle=NORMAL
FontColor=15,160,250,255
FontSize=14
StringAlign=LEFT
AntiAlias=1
Hidden=0
LeftMouseDownAction=!Execute [H:\]


[HDD7]
Meter=Image
ImageName=hdd.png
X=535
Y=227
AntiAlias=1
Hidden=0


[HDD7Access]
Measure=Plugin
Plugin=Plugins\PerfMon.dll
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Bytes/sec"
PerfMonInstance="I:"


[HDD7Used]
Measure=FreeDiskSpace
Drive=I:
InvertMeasure=1


[HDD7AccessBar]
Meter=Bar
BarImage=access.png
MeasureName=HDD7Access
X=535
Y=227
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1
UpdateDivider=5


[HDD7UsedBar]
Meter=Bar
BarImage=access bar.png
MeasureName=HDD7Used
X=554
Y=236
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1


[HDD7Label]
Meter=STRING
X=558
Y=245
Text="I"
FontFace=Chintzy CPU BRK
StringStyle=NORMAL
FontColor=15,160,250,255
FontSize=14
StringAlign=LEFT
AntiAlias=1
Hidden=0
LeftMouseDownAction=!Execute [I:\]

REMEMBER - The percentage status bar I'm trying to show for each partition is an IMAGE BAR.
You do not have the required permissions to view the files attached to this post.
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.

My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Total HDD Status bar

Post by jsmorley »

Here is an approach you can look at to work into your skin. Just change the bar to use any image you like instead of BarColor, make sure the image is the size you want (it can't be resized in Rainmeter) and that you set the W and H on the background and bar meters to match.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1

[Variables]
Drive1=C:
Drive2=D:

[MeasureTotalDrive1]
Measure=FreeDiskSpace
Drive=#Drive1#
Total=1
IgnoreRemovable=0
UpdateDivider=2

[MeasureFreeDrive1]
Measure=FreeDiskSpace
Drive=#Drive1#
IgnoreRemovable=0
UpdateDivider=2

[MeasureUsedDrive1]
Measure=FreeDiskSpace
Drive=#Drive1#
InvertMeasure=1
IgnoreRemovable=0
UpdateDivider=2

[MeasureTotalDrive2]
Measure=FreeDiskSpace
Drive=#Drive2#
Total=1
IgnoreRemovable=0
UpdateDivider=2

[MeasureFreeDrive2]
Measure=FreeDiskSpace
Drive=#Drive2#
IgnoreRemovable=0
UpdateDivider=2

[MeasureUsedDrive2]
Measure=FreeDiskSpace
Drive=#Drive2#
InvertMeasure=1
IgnoreRemovable=0
UpdateDivider=2

[MeasureTotalAll]
Measure=Calc
Formula=(MeasureTotalDrive1 + MeasureTotalDrive2)

[MeasureFreeAll]
Measure=Calc
Formula=(MeasureFreeDrive1 + MeasureFreeDrive2)
MinValue=0
MaxValue=[MeasureTotalAll]
DynamicVariables=1

[MeasureUsedAll]
Measure=Calc
Formula=(MeasureUsedDrive1 + MeasureUsedDrive2)
MinValue=0
MaxValue=[MeasureTotalAll]
DynamicVariables=1

[MeterUsedBarBack]
Meter=Image
W=300
H=20
SolidColor=150,150,150,255

[MeterUsedBar]
Meter=Bar
MeasureName=MeasureUsedAll
W=300
H=20
BarOrientation=Horizontal
BarColor=0,255,0,255

[MeterFreeBarBack]
Meter=Image
Y=4R
W=300
H=20
SolidColor=150,150,150,255

[MeterFreeBar]
Meter=Bar
MeasureName=MeasureFreeAll
Y=0r
W=300
H=20
BarOrientation=Horizontal
BarColor=0,255,0,255
8-8-2012 11-11-52 AM.jpg
Or you could do something clever like:

Code: Select all

[MeterUsedBarBack]
Meter=Image
W=300
H=20
SolidColor=150,150,150,255

[MeterUsedBar]
Meter=Bar
MeasureName=MeasureUsedAll
W=300
H=20
BarOrientation=Horizontal
BarColor=255,0,0,255

[MeterFreeBar]
Meter=Bar
MeasureName=MeasureFreeAll
W=300
H=20
Flip=1
BarOrientation=Horizontal
BarColor=0,255,0,255
8-8-2012 11-26-30 AM.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Re: Total HDD Status bar

Post by TweaknFreak »

Will try and let you know.
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.

My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Re: Total HDD Status bar

Post by TweaknFreak »

I think you couldnt get me properly. I'll include an example for better understanding.

Suppose I have a 250 GB hard drive and it has 2 partitions - A & B.
A has 100 GB
B has 150 GB

Now in that hexagonal meter(I included the image in attachments) for A, The L-shaped bar at the bottom will show a bluish tinge upto = [(100/250) * 100] % of its entire width. Likewise the B one will show = [(150/250) * 100] % bluish tinge.

I hope that clarifies me.
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.

My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Total HDD Status bar

Post by jsmorley »

TweaknFreak wrote:I think you couldnt get me properly. I'll include an example for better understanding.

Suppose I have a 250 GB hard drive and it has 2 partitions - A & B.
A has 100 GB
B has 150 GB

Now in that hexagonal meter(I included the image in attachments) for A, The L-shaped bar at the bottom will show a bluish tinge upto = [(100/250) * 100] % of its entire width. Likewise the B one will show = [(150/250) * 100] % bluish tinge.

I hope that clarifies me.
Not really, I don't see any images in your attachments, just two white squares.
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Total HDD Status bar

Post by MerlinTheRed »

Do you mean something like this?
drivebar.png
Darker parts denote used space of disk. Parts are scaled to relative disk size. Note: Uses features of most recent Rainmeter beta (gotta love those section variables).

Code: Select all

[Rainmeter]
Author=MerlinTheRed
Update=1000
MiddleMouseDownAction=[!Refresh]

[Variables]
HDD1=C:
HDD2=D:
HDD3=E:
HDD4=G:
HDD5=H:

Color1=ff8080ff
Color2=80ff80ff
Color3=8080ffff
Color4=ffff80ff
Color5=ff80ffff
UsedColor=00000030

TotalWidth=300
Height=20

;Measures
;================================

[HDD1Total]
Measure=FreeDiskSpace
Drive=#HDD1#
Total=1

[HDD2Total]
Measure=FreeDiskSpace
Drive=#HDD2#
Total=1

[HDD3Total]
Measure=FreeDiskSpace
Drive=#HDD3#
Total=1

[HDD4Total]
Measure=FreeDiskSpace
Drive=#HDD4#
Total=1

[HDD5Total]
Measure=FreeDiskSpace
Drive=#HDD5#
Total=1

[TotalDiskSpace]
Measure=Calc
Formula=(HDD1Total+HDD2Total+HDD3Total+HDD4Total+HDD5Total)

[HDD1Used]
Measure=FreeDiskSpace
Drive=#HDD1#
InvertMeasure=1

[HDD2Used]
Measure=FreeDiskSpace
Drive=#HDD2#
InvertMeasure=1

[HDD3Used]
Measure=FreeDiskSpace
Drive=#HDD3#
InvertMeasure=1

[HDD4Used]
Measure=FreeDiskSpace
Drive=#HDD4#
InvertMeasure=1

[HDD5Used]
Measure=FreeDiskSpace
Drive=#HDD5#
InvertMeasure=1

;Meters
;===========================

[HDD1Bar]
Meter=Image
X=0
Y=0
W=([HDD1Total]*#TotalWidth#/[TotalDiskSpace])
H=#Height#
SolidColor=#Color1#
DynamicVariables=1

[HDD2Bar]
Meter=Image
X=([HDD1Bar:X] + [HDD1Bar:W])
Y=[HDD1Bar:Y]
W=([HDD2Total]*#TotalWidth#/[TotalDiskSpace])
H=#Height#
SolidColor=#Color2#
DynamicVariables=1

[HDD3Bar]
Meter=Image
X=([HDD2Bar:X] + [HDD2Bar:W])
Y=[HDD1Bar:Y]
W=([HDD3Total]/[TotalDiskSpace]*#TotalWidth#)
H=#Height#
SolidColor=#Color3#
DynamicVariables=1

[HDD4Bar]
Meter=Image
X=([HDD3Bar:X] + [HDD3Bar:W])
Y=[HDD1Bar:Y]
W=([HDD4Total]/[TotalDiskSpace]*#TotalWidth#)
H=#Height#
SolidColor=#Color4#
DynamicVariables=1

[HDD5Bar]
Meter=Image
X=([HDD4Bar:X] + [HDD4Bar:W])
Y=[HDD1Bar:Y]
W=([HDD5Total]/[TotalDiskSpace]*#TotalWidth#)
H=#Height#
SolidColor=#Color5#
DynamicVariables=1



[HDD1UsedBar]
Meter=Image
X=[HDD1Bar:X]
Y=[HDD1Bar:Y]
W=([HDD1Used]*#TotalWidth#/[TotalDiskSpace])
H=#Height#
SolidColor=#UsedColor#
DynamicVariables=1

[HDD2UsedBar]
Meter=Image
X=([HDD1Bar:X] + [HDD1Bar:W])
Y=[HDD1Bar:Y]
W=([HDD2Used]*#TotalWidth#/[TotalDiskSpace])
H=#Height#
SolidColor=#UsedColor#
DynamicVariables=1

[HDD3UsedBar]
Meter=Image
X=([HDD2Bar:X] + [HDD2Bar:W])
Y=[HDD1Bar:Y]
W=([HDD3Used]/[TotalDiskSpace]*#TotalWidth#)
H=#Height#
SolidColor=#UsedColor#
DynamicVariables=1

[HDD4UsedBar]
Meter=Image
X=([HDD3Bar:X] + [HDD3Bar:W])
Y=[HDD1Bar:Y]
W=([HDD4Used]/[TotalDiskSpace]*#TotalWidth#)
H=#Height#
SolidColor=#UsedColor#
DynamicVariables=1

[HDD5UsedBar]
Meter=Image
X=([HDD4Bar:X] + [HDD4Bar:W])
Y=[HDD1Bar:Y]
W=([HDD5Used]/[TotalDiskSpace]*#TotalWidth#)
H=#Height#
SolidColor=#UsedColor#
DynamicVariables=1

[StringStyle]
StringAlign=LeftCenter
FontFace=Arial Black
FontColor=000000ff
FontSize=10
AntiAlias=1
DynamicVariables=1

[HDD1Text]
Meter=String
X=([HDD1Bar:X])
Y=([HDD1Bar:Y]+#Height#/2)
Text=#HDD1#
MeterStyle=StringStyle

[HDD2Text]
Meter=String
X=([HDD2Bar:X])
Y=([HDD2Bar:Y]+#Height#/2)
Text=#HDD2#
MeterStyle=StringStyle

[HDD3Text]
Meter=String
X=([HDD3Bar:X])
Y=([HDD3Bar:Y]+#Height#/2)
Text=#HDD3#
MeterStyle=StringStyle

[HDD4Text]
Meter=String
X=([HDD4Bar:X])
Y=([HDD4Bar:Y]+#Height#/2)
Text=#HDD4#
MeterStyle=StringStyle

[HDD5Text]
Meter=String
X=([HDD5Bar:X])
Y=([HDD5Bar:Y]+#Height#/2)
Text=#HDD5#
MeterStyle=StringStyle
You do not have the required permissions to view the files attached to this post.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Re: Total HDD Status bar

Post by TweaknFreak »

Took help of Merlin's code. This code describes exactly what I want to do:-

Code: Select all

[Rainmeter]
Author=MerlinTheRed
Update=1000
MiddleMouseDownAction=[!Refresh]

[Variables]
HDD1=C:
HDD2=D:
HDD3=E:
HDD4=F:
HDD5=G:

;Measures
;================================

[HDD1Total]
Measure=FreeDiskSpace
Drive=#HDD1#
Total=1


[HDD2Total]
Measure=FreeDiskSpace
Drive=#HDD2#
Total=1


[HDD3Total]
Measure=FreeDiskSpace
Drive=#HDD3#
Total=1


[HDD4Total]
Measure=FreeDiskSpace
Drive=#HDD4#
Total=1


[HDD5Total]
Measure=FreeDiskSpace
Drive=#HDD5#
Total=1


[TotalDiskSpace]
Measure=Calc
Formula=(HDD1Total+HDD2Total+HDD3Total+HDD4Total

+HDD5Total)


[HDD1Percent]
Measure=Calc
Formula=([HDD1Total]/[TotalDiskSpace]) * 100


[HDD2Percent]
Measure=Calc
Formula=([HDD2Total]/[TotalDiskSpace]) * 100


[HDD3Percent]
Measure=Calc
Formula=([HDD3Total]/[TotalDiskSpace]) * 100


[HDD4Percent]
Measure=Calc
Formula=([HDD4Total]/[TotalDiskSpace]) * 100


[HDD5Percent]
Measure=Calc
Formula=([HDD5Total]/[TotalDiskSpace]) * 100

;Meters
;===========================

[HDD1Bar]
Meter=Bar
BarImage=1.png
MeasureName=HDD1Percent
X=20
Y=20
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1


[HDD2Bar]
Meter=Bar
BarImage=1.png
MeasureName=HDD2Percent
X=70r
Y=20
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1


[HDD3Bar]
Meter=Bar
BarImage=1.png
MeasureName=HDD3Percent
X=70r
Y=20
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1


[HDD4Bar]
Meter=Bar
BarImage=1.png
MeasureName=HDD4Percent
X=70r
Y=20
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1


[HDD5Bar]
Meter=Bar
BarImage=1.png
MeasureName=HDD5Percent
X=70r
Y=20
ImageTint=15,160,250,255
BarOrientation=HORIZONTAL
AutoScale=1
But the problem is its not working. I'm attaching the image required. Please save it on your computer because the image has so less opacity that its hardly visible in this forum.
You do not have the required permissions to view the files attached to this post.
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.

My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Total HDD Status bar

Post by MerlinTheRed »

Your [XXXPercent] measures don't make sense. For example this formula: Formula=(#HDD2#/[TotalDiskSpace]) * 100 is trying to divide the variable #HDD2#, which is the string "D:" by a numerical value. No wonder that doesn't work.

Additionally, your bar meters are placed statically 70 pixels to the right from the x coordinate of the previous meter. You need to use at least "R" to place it exactly at the right edge of the previous meter.

If you really want to use bar meters, you need to do this:
  • Make the width of the bar dependent on the relative size of the disk about like this: W=([HDDXTotal]/[TotalDiskSpace]*#WidthFactor#)
  • The measure the bar uses is the normal disk usage measure without any modifications
  • If you want it to look like on my screenshot, the bars need to be placed dynamically next to each other. The easiest way is to put them one after the other in the ini file and then use X=R on all but the first one.
On top of that, you can't set the width of a bar meter if you use BarImage. I just found this out too. If you use a BarImage, the bar will always be as wide as the image you specified. So no setting the bar width to a size relative to the disk space if you use BarImage.
Last edited by MerlinTheRed on August 8th, 2012, 7:49 pm, edited 1 time in total.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Total HDD Status bar

Post by jsmorley »

MerlinTheRed wrote:On top of that, you can't set the width of a bar meter if you use BarImage. I just found this out too. If you use a BarImage, the bar will always be as wide as the image you specified. So no setting the bar width to a size relative to the disk space if you use BarImage.
Correct. What Bar does with BarImage is "expose" the percentage of the total image that matches the percentage value of the MeasureName= measure divided by MaxValue. It does not alter the image in any way, nor can you set W and H and have it change the size of the image.
User avatar
TweaknFreak
Posts: 217
Joined: July 14th, 2012, 7:26 am

Re: Total HDD Status bar

Post by TweaknFreak »

Okay, but then how do I use that image "1.png" for displaying each drive's percentage of the total hard drive space ??? Use some other meter ???
Be one of the iNEViTABLES - Storm, Earthquake, Lightning, Flood - and the world will bow down to you.

My current desktop
[hsimg]http://i1313.photobucket.com/albums/t559/TweaknFreak/6-22-20149-46-40PM_zps7bcbc1f6.png[/hsimg]