It is currently September 29th, 2024, 7:22 pm

Third Disk in Illustro?

General topics related to Rainmeter.
Yakov
Posts: 11
Joined: August 10th, 2013, 6:07 am

Third Disk in Illustro?

Post by Yakov »

Can a third disk (G:) be recognized by the Illustro theme?

Image

Rainmeter 3 r2022
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Third Disk in Illustro?

Post by fonpaolo »

Yes, just copy the measures and meters of one disk, change the name (...Disk3) and add a third #disk# with "disk=E:" or whatever in "Variables".
I have modified that skin to display 5 disks, one of my first skin modifications.

(It's already written in the istructions, if you open the file) ;-)
Yakov
Posts: 11
Joined: August 10th, 2013, 6:07 am

Re: Third Disk in Illustro?

Post by Yakov »

I encountered an error in MeterLabelDisk - overlapping labels:

Last edited by Brian on August 11th, 2013, 4:28 am, edited 1 time in total.
Reason: Please use [hsimg] for larger images.
Harley Gorillason
Posts: 4
Joined: July 10th, 2012, 2:56 am

Re: Third Disk in Illustro?

Post by Harley Gorillason »

Their overlapping because the skin uses relative positioning for some of the elements and you've placed the label for disk 3 in the middle of Disk 2s information.

Copy the the text in the spoiler tag over the top of your Meters section in the .ini

Code: Select all

; ----------------------------------
; 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=40
H=18
Text="Disk"
LeftMouseUpAction=!Execute ["shell:MyComputerFolder"]
ToolTipText="Open My Computer"

[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/%2B used"
; %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=1

[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/%2B used"
NumOfDecimals=1
AutoScale=1

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

[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/%2B used"
NumOfDecimals=1
AutoScale=1

[meterBarDisk3]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk3
X=10
Y=92
W=190
H=1
Yakov
Posts: 11
Joined: August 10th, 2013, 6:07 am

Re: Third Disk in Illustro?

Post by Yakov »

Hm, I am still having other problems. The last two disk capacities are mixed up and one of them doesn't even make sense.

Image

Code: http://pastebin.com/QAX9j2MP
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Third Disk in Illustro?

Post by fonpaolo »

For what I'm seeing, there may be two errors.

If the disk capacities are mixed up, go in your meter and verify that the right measure is listed corresponding to the disk you're monitoring.

The "%2" means that there's an error on measure name, that's the second measure, but seems there isn't any.
Yakov
Posts: 11
Joined: August 10th, 2013, 6:07 am

Re: Third Disk in Illustro?

Post by Yakov »

I fixed the disk order but there is still a capacity calculation error.

Image

Code: http://pastebin.com/PHc1JP5f
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5534
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Third Disk in Illustro?

Post by eclectic-tech »

MeasureName=,MeasureName2=, etc. should be consecutively named; you skipped to "3" in the third disk meter...

Change the second included measure to MeasureName2=measureTotalDisk3
Here is the meter with the changes: (it should eliminate the "%2" error)

Code: Select all

[meterValueDisk3]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUsedDisk3
MeasureName2=measureTotalDisk3
X=200
Y=80
W=190
H=14
Text="%1B/%2B used"
NumOfDecimals=1
AutoScale=1
 
Yakov
Posts: 11
Joined: August 10th, 2013, 6:07 am

Re: Third Disk in Illustro?

Post by Yakov »

Illustro disk meter fixed

Image

Code: http://pastebin.com/XaS6YEGE