It is currently September 8th, 2024, 12:11 am

Help with disk.ini in illustro - display used space not free

Get help with creating, editing & fixing problems with skins
Ross
Posts: 10
Joined: October 13th, 2012, 7:05 pm

Help with disk.ini in illustro - display used space not free

Post by Ross »

Hi,
I've been using Rainmeter for quite a while now, and I still know very little. I used to use Samurize but it was discontinued. And it wasn't as flexible as Rainmeter also..

So I didn't make massive modifications or get fancy themes and skins. I just stuck with illustro, which is very functional, and just modded the disks.ini skin so it could suit me setup, since I have three hard drives. To do that, I simply followed the logic brought in the comments part at the beginning of disk.ini file. Worked well.

But I realized the meters actually confused me: they display the 'used' and not the 'free' space, so I made a little tweak by changing "1" to "0" in "InvertMeasure=0". I'd like Rainmeter to display like we're intuitively used to read, which is this:

Image

That's a Windows Explorer snap. It's in Portuguese, so replace "livre(s)" with "free". As you can see, the blue bars display the used ammount, but the labels below display the free space. On the other hand, this is how disk.ini is displaying:

Image

The labels indicate the free space, but the orange bars also indicate the free space, confusing me! I'd like to have the orange bars fill the field according to the used space, leaving the label display "x GB free".

I'm running Windows 7, 1680x1050 resolution, three hard drives, and Rainmeter version is 2.5.0 r1842 64bit (mar 24 2013).

My config (disk.ini) is as follows. What should I change?

Code: Select all

; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------

; HOWTO: Adding more disks
; ----------------------------------
; Adding more disks is a pretty straightforward process. Follow the following steps to turn
; this 2 disks skin into a 3 disks skin. You can then extend it even further as you wish.
;
; 1) Create a new variable called disk3=X: directly below disk2=D: in the [Variables] section
; 2) Create a copy of the [measureTotalDisk2] and [measureUsedDisk2] sections
; 3) Rename the copied sections to [measureTotalDisk3] and [measureUsedDisk3], respectively.
;    Also change Drive=#disk2# to Drive=#disk3#
; 4) Create a copy of the [meterLabelDisk2], [meterValueDisk2], and [meterBarDisk2].
;    Rename all Disk2's in the copied sections to Disk3.
; 5) Now we need to change the Y= values to adjust height. Change Y= under [meterLabelDisk3]
;    to Y=80 (calculated by adding 20 to the Y= value of previous meterLabel).
;    Then change Y= under [meterBarDisk3] to Y=92 (calculated by adding 20 to the Y= value of previous 

meterBar).
; 6) Save the file as '3 Disks.ini'. Now right-click on the Rainmeter tray icon and select
;    'Refresh All'. Now go activate the '3 Disks.ini' skin and enjoy! :)

[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Author=poiru
AppVersion=2003000
Update=1000
Background=#@#Background.png
; #@# is equal to Rainmeter\Skins\illustro\@Resources
BackgroundMode=3
BackgroundMargins=0,34,0,14

[Metadata]
; Contains basic information of the skin.
Description=Displays disk usage.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Trebuchet MS
textSize=9
colorBar=235,170,0,255
colorText=255,255,255,205
disk1=C:
disk2=D:
disk3=E:
disk4=F:

; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------

[measureTotalDisk1]
; This measure returns the total disk space
Measure=FreeDiskSpace
Drive=#disk1#
Total=1
UpdateDivider=120

[measureUsedDisk1]
; Returns inverted value of free disk space (i.e. used disk space)
Measure=FreeDiskSpace
Drive=#disk1#
InvertMeasure=0
UpdateDivider=120

[measureTotalDisk2]
Measure=FreeDiskSpace
Drive=#disk2#
Total=1
UpdateDivider=120

[measureUsedDisk2]
Measure=FreeDiskSpace
Drive=#disk2#
InvertMeasure=0
UpdateDivider=120

[measureTotalDisk3]
Measure=FreeDiskSpace
Drive=#disk3#
Total=1
UpdateDivider=120

[measureUsedDisk3]
Measure=FreeDiskSpace
Drive=#disk3#
InvertMeasure=0
UpdateDivider=120

[measureTotalDisk4]
Measure=FreeDiskSpace
Drive=#disk4#
Total=1
UpdateDivider=120

[measureUsedDisk4]
Measure=FreeDiskSpace
Drive=#disk4#
InvertMeasure=0
UpdateDivider=120


; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------

[styleTitle]
StringAlign=CENTER
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=12
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=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleRightText]
StringAlign=RIGHT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,30

; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
X=100
Y=12
W=190
H=18
Text="Disk"
; Even though the text is set to Disk, Rainmeter will display
; it as DISK, because styleTitle contains StringCase=UPPER.

[meterLabelDisk1]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=40
W=190
H=14
Text="#disk1#\"

[meterValueDisk1]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUsedDisk1
MeasureName2=measureTotalDisk1
X=200
Y=0r
; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
W=190
H=14
Text="%1B of %2B free"
; %1 stands for the value of MeasureName (measureUsedDisk1 in this case).
; %2 stands for the value of MeasureName2.
NumOfDecimals=1
AutoScale=1
; Because disk measures return the free/used space in bytes, we must use AutoScale=1 to
; automatically scale the value into a more readable figure.
LeftMouseUpAction=!Execute ["#disk1#\"]
; Open #disk1# on click

[meterBarDisk1]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk1
X=10
Y=52
W=190
H=2

[meterLabelDisk2]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=60
W=190
H=14
Text="#disk2#\"
LeftMouseUpAction=!Execute ["#disk2#\"]

[meterValueDisk2]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUsedDisk2
MeasureName2=measureTotalDisk2
X=200
Y=0r
W=190
H=14
Text="%1B of %2B free"
NumOfDecimals=1
AutoScale=1

[meterBarDisk2]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk2
X=10
Y=72
W=190
H=2

[meterLabelDisk3]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=80
W=190
H=14
Text="#disk3#\"
LeftMouseUpAction=!Execute ["#disk3#\"]

[meterValueDisk3]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUsedDisk3
MeasureName2=measureTotalDisk3
X=200
Y=0r
W=190
H=14
Text="%1B of %2B free"
NumOfDecimals=1
AutoScale=1

[meterBarDisk3]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk3
X=10
Y=92
W=190
H=2

[meterLabelDisk4]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=100
W=190
H=14
Text="#disk4#\"
LeftMouseUpAction=!Execute ["#disk4#\"]

[meterValueDisk4]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUsedDisk4
MeasureName2=measureTotalDisk4
X=200
Y=0r
W=190
H=14
Text="%1B of %2B free"
NumOfDecimals=1
AutoScale=1

[meterBarDisk4]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk4
X=10
Y=112
W=190
H=2
FlyingHyrax
Posts: 232
Joined: July 1st, 2011, 1:32 am
Location: US

Re: Help with disk.ini in illustro - display used space not

Post by FlyingHyrax »

You need a FreeDiskSpace measure for each type of data - so for each of your disks, add another measure that measures FreeDiskSpace, but that does not invert the value (like in the original)
i.e.

Code: Select all

[measureUsedDisk1]
Measure=FreeDiskSpace
Disk=#disk1#
InvertMeasure=1
UpdateDivider=120

[measureFreeDisk1]
Measure=FreeDiskSpace
Disk=#disk1#
UpdateDivider=120

[measureTotalDisk1]
Measure=FreeDiskSpace
Disk=#disk1#
Total=1
UpdateDivider=120
...and so on for each of your three hard drives
Then you need to bind the String meter (meterValueDiskN) for the disk to the measure for free space, and the Bar meter (meterBarDiskN) to the measure for used space. That should achieve the effect you're going for.

I hope that helps you out, if you have more questions let us know! :)
Flying Hyrax on DeviantArt
Ross
Posts: 10
Joined: October 13th, 2012, 7:05 pm

Re: Help with disk.ini in illustro - display used space not

Post by Ross »

Thanks FlyingHyrax for your help!
I think I got it! I appended your piece of code to my skin. But I bumped in another problem: after doing all the changes, the drives on the skin ended up as a replica of the first. So I trimmed down from 4 to 2 drives in attempt to do a debug-from-almost-the-scratch. This is what I get:

Image
(remember: 'livre' = 'free'.
As you can see, drive C: displayed by Rainmeter is right, when you compare to the Explorer window. However D: is an exact copy of C:. And so were all the other two partitions.

This is my code right now, and I can't help but can't find what exactly is wrong in here :(

Code: Select all

; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------

; HOWTO: Adding more disks
; ----------------------------------
; Adding more disks is a pretty straightforward process. Follow the following steps to turn
; this 2 disks skin into a 3 disks skin. You can then extend it even further as you wish.
;
; 1) Create a new variable called disk3=X: directly below disk2=D: in the [Variables] section
; 2) Create a copy of the [measureTotalDisk2] and [measureUsedDisk2] sections
; 3) Rename the copied sections to [measureTotalDisk3] and [measureUsedDisk3], respectively.
;    Also change Drive=#disk2# to Drive=#disk3#
; 4) Create a copy of the [meterLabelDisk2], [meterValueDisk2], and [meterBarDisk2].
;    Rename all Disk2's in the copied sections to Disk3.
; 5) Now we need to change the Y= values to adjust height. Change Y= under [meterLabelDisk3]
;    to Y=80 (calculated by adding 20 to the Y= value of previous meterLabel).
;    Then change Y= under [meterBarDisk3] to Y=92 (calculated by adding 20 to the Y= value of previous 

meterBar).
; 6) Save the file as '3 Disks.ini'. Now right-click on the Rainmeter tray icon and select
;    'Refresh All'. Now go activate the '3 Disks.ini' skin and enjoy! :)

[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Author=poiru
AppVersion=2003000
Update=1000
Background=#@#Background.png
; #@# is equal to Rainmeter\Skins\illustro\@Resources
BackgroundMode=3
BackgroundMargins=0,34,0,14

[Metadata]
; Contains basic information of the skin.
Description=Displays disk usage.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Trebuchet MS
textSize=9
colorBar=235,170,0,255
colorText=255,255,255,205
disk1=C:
disk2=D:
disk3=E:
disk4=F:

; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------

; DISK 1
[measureTotalDisk1]
Measure=FreeDiskSpace
Disk=#disk1#
Total=1
UpdateDivider=120

[measureFreeDisk1]
Measure=FreeDiskSpace
Disk=#disk1#
UpdateDivider=120

[measureUsedDisk1]
Measure=FreeDiskSpace
Disk=#disk1#
InvertMeasure=1
UpdateDivider=120

; DISK 2
[measureTotalDisk2]
Measure=FreeDiskSpace
Disk=#disk2#
Total=1
UpdateDivider=120

[measureFreeDisk2]
Measure=FreeDiskSpace
Disk=#disk2#
UpdateDivider=120

[measureUsedDisk2]
Measure=FreeDiskSpace
Disk=#disk2#
InvertMeasure=1
UpdateDivider=120

; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------

[styleTitle]
StringAlign=CENTER
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=12
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=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleRightText]
StringAlign=RIGHT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,30

; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
X=100
Y=12
W=190
H=18
Text="Disk"
; Even though the text is set to Disk, Rainmeter will display
; it as DISK, because styleTitle contains StringCase=UPPER.

[meterLabelDisk1]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=40
W=190
H=14
Text="#disk1#\"

[meterValueDisk1]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureFreeDisk1
MeasureName2=measureTotalDisk1
X=200
Y=0r
; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
W=190
H=14
Text="%1B of %2B free"
; %1 stands for the value of MeasureName (measureUsedDisk1 in this case).
; %2 stands for the value of MeasureName2.
NumOfDecimals=1
AutoScale=1
; Because disk measures return the free/used space in bytes, we must use AutoScale=1 to
; automatically scale the value into a more readable figure.
LeftMouseUpAction=!Execute ["#disk1#\"]
; Open #disk1# on click

[meterBarDisk1]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk1
X=10
Y=52
W=190
H=2

[meterLabelDisk2]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=60
W=190
H=14
Text="#disk2#\"

[meterValueDisk2]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureFreeDisk2
MeasureName2=measureTotalDisk2
X=200
Y=0r
; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
W=190
H=14
Text="%1B of %2B free"
; %1 stands for the value of MeasureName (measureUsedDisk1 in this case).
; %2 stands for the value of MeasureName2.
NumOfDecimals=1
AutoScale=1
; Because disk measures return the free/used space in bytes, we must use AutoScale=1 to
; automatically scale the value into a more readable figure.
LeftMouseUpAction=!Execute ["#disk2#\"]
; Open #disk1# on click

[meterBarDisk2]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk2
X=10
Y=72
W=190
H=2
FlyingHyrax
Posts: 232
Joined: July 1st, 2011, 1:32 am
Location: US

Re: Help with disk.ini in illustro - display used space not

Post by FlyingHyrax »

...Found your problem, and it's totally my fault... :handtohead:
In all of your FreeDiskSpace measures, Disk=... should be Drive=...
The reason that the two meters display the same data is because "Disk" isn't actually a valid option for FreeDiskSpace measures - so all of your measures thought that the drive was not specified and used the default (C:)
My bad, and sincere apologies. Find/Replace will work wonders. :oops:
Flying Hyrax on DeviantArt
Ross
Posts: 10
Joined: October 13th, 2012, 7:05 pm

Re: Help with disk.ini in illustro - display used space not

Post by Ross »

Hyrax, that's OK! Don't worry!

So, you got it!! Look at the perfect correspondence:

Image

But there is just a little, little thing pending! Did you notice the "...of %2B free" on the right side, on C: drive? What did I miss this time?
I'm the one to apologise for so many consequent little questions :)

Here is the output for now:

Code: Select all

; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------

; HOWTO: Adding more disks
; ----------------------------------
; Adding more disks is a pretty straightforward process. Follow the following steps to turn
; this 2 disks skin into a 3 disks skin. You can then extend it even further as you wish.
;
; 1) Create a new variable called disk3=X: directly below disk2=D: in the [Variables] section
; 2) Create a copy of the [measureTotalDisk2] and [measureUsedDisk2] sections
; 3) Rename the copied sections to [measureTotalDisk3] and [measureUsedDisk3], respectively.
;    Also change Drive=#disk2# to Drive=#disk3#
; 4) Create a copy of the [meterLabelDisk2], [meterValueDisk2], and [meterBarDisk2].
;    Rename all Disk2's in the copied sections to Disk3.
; 5) Now we need to change the Y= values to adjust height. Change Y= under [meterLabelDisk3]
;    to Y=80 (calculated by adding 20 to the Y= value of previous meterLabel).
;    Then change Y= under [meterBarDisk3] to Y=92 (calculated by adding 20 to the Y= value of previous 

meterBar).
; 6) Save the file as '3 Disks.ini'. Now right-click on the Rainmeter tray icon and select
;    'Refresh All'. Now go activate the '3 Disks.ini' skin and enjoy! :)

[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Author=poiru
AppVersion=2003000
Update=1000
Background=#@#Background.png
; #@# is equal to Rainmeter\Skins\illustro\@Resources
BackgroundMode=3
BackgroundMargins=0,34,0,14

[Metadata]
; Contains basic information of the skin.
Description=Displays disk usage.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Trebuchet MS
textSize=9
colorBar=235,170,0,255
colorText=255,255,255,205
disk1=C:
disk2=D:
disk3=E:
disk4=F:

; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------

; DISK 1
[measureTotalDisk1]
Drive=#disk1#
Total=1
UpdateDivider=120

[measureFreeDisk1]
Measure=FreeDiskSpace
Drive=#disk1#
UpdateDivider=120

[measureUsedDisk1]
Measure=FreeDiskSpace
Drive=#disk1#
InvertMeasure=1
UpdateDivider=120

; DISK 2
[measureTotalDisk2]
Measure=FreeDiskSpace
Drive=#disk2#
Total=1
UpdateDivider=120

[measureFreeDisk2]
Measure=FreeDiskSpace
Drive=#disk2#
UpdateDivider=120

[measureUsedDisk2]
Measure=FreeDiskSpace
Drive=#disk2#
InvertMeasure=1
UpdateDivider=120

; DISK3
[measureTotalDisk3]
Measure=FreeDiskSpace
Drive=#disk3#
Total=1
UpdateDivider=120

[measureFreeDisk3]
Measure=FreeDiskSpace
Drive=#disk3#
UpdateDivider=120

[measureUsedDisk3]
Measure=FreeDiskSpace
Drive=#disk3#
InvertMeasure=1
UpdateDivider=120

; DISK 4
[measureTotalDisk4]
Measure=FreeDiskSpace
Drive=#disk4#
Total=1
UpdateDivider=120

[measureFreeDisk4]
Measure=FreeDiskSpace
Drive=#disk4#
UpdateDivider=120

[measureUsedDisk4]
Measure=FreeDiskSpace
Drive=#disk4#
InvertMeasure=1
UpdateDivider=120

; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------

[styleTitle]
StringAlign=CENTER
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=12
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=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleRightText]
StringAlign=RIGHT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,30

; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
X=100
Y=12
W=190
H=18
Text="Disk"
; Even though the text is set to Disk, Rainmeter will display
; it as DISK, because styleTitle contains StringCase=UPPER.

[meterLabelDisk1]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=40
W=190
H=14
Text="#disk1#\"

[meterValueDisk1]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureFreeDisk1
MeasureName2=measureTotalDisk1
X=200
Y=0r
; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
W=190
H=14
Text="%1B of %2B free"
; %1 stands for the value of MeasureName (measureUsedDisk1 in this case).
; %2 stands for the value of MeasureName2.
NumOfDecimals=1
AutoScale=1
; Because disk measures return the free/used space in bytes, we must use AutoScale=1 to
; automatically scale the value into a more readable figure.
LeftMouseUpAction=!Execute ["#disk1#\"]
; Open #disk1# on click

[meterBarDisk1]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk1
X=10
Y=52
W=190
H=2

[meterLabelDisk2]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=60
W=190
H=14
Text="#disk2#\"

[meterValueDisk2]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureFreeDisk2
MeasureName2=measureTotalDisk2
X=200
Y=0r
; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
W=190
H=14
Text="%1B of %2B free"
; %1 stands for the value of MeasureName (measureUsedDisk1 in this case).
; %2 stands for the value of MeasureName2.
NumOfDecimals=1
AutoScale=1
; Because disk measures return the free/used space in bytes, we must use AutoScale=1 to
; automatically scale the value into a more readable figure.
LeftMouseUpAction=!Execute ["#disk2#\"]
; Open #disk1# on click

[meterBarDisk2]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk2
X=10
Y=72
W=190
H=2

[meterLabelDisk3]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=80
W=190
H=14
Text="#disk3#\"
LeftMouseUpAction=!Execute ["#disk3#\"]

[meterValueDisk3]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUsedDisk3
MeasureName2=measureTotalDisk3
X=200
Y=0r
W=190
H=14
Text="%1B of %2B free"
NumOfDecimals=1
AutoScale=1

[meterBarDisk3]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk3
X=10
Y=92
W=190
H=2

[meterLabelDisk4]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=100
W=190
H=14
Text="#disk4#\"
LeftMouseUpAction=!Execute ["#disk4#\"]

[meterValueDisk4]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUsedDisk4
MeasureName2=measureTotalDisk4
X=200
Y=0r
W=190
H=14
Text="%1B of %2B free"
NumOfDecimals=1
AutoScale=1

[meterBarDisk4]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk4
X=10
Y=112
W=190
H=2
FlyingHyrax
Posts: 232
Joined: July 1st, 2011, 1:32 am
Location: US

Re: Help with disk.ini in illustro - display used space not

Post by FlyingHyrax »

Cool, glad it's working for you now. :thumbup:
[measureTotalDisk1] is missing the Measure=FreeDiskSpace line. That should take care of the "%2B" problem.
Flying Hyrax on DeviantArt
Ross
Posts: 10
Joined: October 13th, 2012, 7:05 pm

Re: Help with disk.ini in illustro - display used space not

Post by Ross »

You're fantastic Hyrax, thanks! Now it's 100% functional :)
CAYQUEGTS
Posts: 1
Joined: July 15th, 2024, 7:20 pm

Re: Help with disk.ini in illustro - display used space not free

Post by CAYQUEGTS »

estou tendo alguns problemas parecidos , porem ao editar nao funciona , no meu caso eu possuo 6 discos rigidos ... poderiam me ajudar a deixar os 6 funcionando
User avatar
SilverAzide
Rainmeter Sage
Posts: 2734
Joined: March 23rd, 2015, 5:26 pm

Re: Help with disk.ini in illustro - display used space not free

Post by SilverAzide »

CAYQUEGTS wrote: July 15th, 2024, 7:22 pm estou tendo alguns problemas parecidos , porem ao editar nao funciona , no meu caso eu possuo 6 discos rigidos ... poderiam me ajudar a deixar os 6 funcionando
Sorry, but these forums are English only. You can use Google or Bing to translate your question, if needed, and we would be happy to help you.
Gadgets Wiki GitHub More Gadgets...
User avatar
Yincognito
Rainmeter Sage
Posts: 8030
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Help with disk.ini in illustro - display used space not free

Post by Yincognito »

CAYQUEGTS wrote: July 15th, 2024, 7:22 pm estou tendo alguns problemas parecidos , porem ao editar nao funciona , no meu caso eu possuo 6 discos rigidos ... poderiam me ajudar a deixar os 6 funcionando
Or, even better, if you're using the same skin, try translating the lines starting with a ; symbol from the code, to find out how to add more disks...
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth