It is currently July 4th, 2022, 6:00 am

Creating the ini file for 17 disks

General topics related to Rainmeter.
User avatar
Cptkirk363
Posts: 5
Joined: May 21st, 2022, 3:17 am
Location: South Wales, UK.

Creating the ini file for 17 disks

Post by Cptkirk363 »

I want to create the INI file for using 17 disks in my PC but have no idea how to adjust the height etc.

I know I'm being cheeky but could i ask someone on here to do it for me please and possibly either upload it for me to download or maybe email it.

My disk layout looks like...

disk1=C:
disk2=D:
disk3=E:
disk4=F:
disk5=G:
disk6=H:
disk7=I:
disk8=J:
disk9=K:
disk10=L:
disk11=M:
disk12=N:
disk13=O:
disk14=S:
disk15=W:
disk16=X:
disk17=Y:

When it comes to programming I have little or no idea.

Thanks people.
Where Ever u maybe, let your wind blow free!!
https://www.speedtest.net/result/13180397341
User avatar
ikarus1969
Posts: 491
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: Creating the ini file for 17 disks

Post by ikarus1969 »

may i kindly ask you to read this: https://forum.rainmeter.net/viewtopic.php?f=5&t=8195

Please have a look at the Share your creations section here on the forum or try to find a disks-skin on deviant-art, download it and try to adapt it to your needs. The documentation section is a very valuable resource for information.

Take your time to learn a little bit of how rainmeter works, it's really not so hard and far from impossible.
After you've tried and questions arise the members of this forum are here to help you for sure (not to do everything for you)

edit:
Cptkirk363 wrote: May 21st, 2022, 3:32 am When it comes to programming I have little or no idea.

Thanks people.
It's never too late to learn something new ;-)
User avatar
Cptkirk363
Posts: 5
Joined: May 21st, 2022, 3:17 am
Location: South Wales, UK.

Re: Creating the ini file for 17 disks

Post by Cptkirk363 »

Take that as a no then.

Thanks anyway.
Where Ever u maybe, let your wind blow free!!
https://www.speedtest.net/result/13180397341
User avatar
Cptkirk363
Posts: 5
Joined: May 21st, 2022, 3:17 am
Location: South Wales, UK.

Re: Creating the ini file for 17 disks

Post by Cptkirk363 »

I have attempted but I'm unsure how to do the height part, if someone could point me in the right direction I will give it another bash.

Please don't bother posting if its just to be rude.

Thanks people.
Where Ever u maybe, let your wind blow free!!
https://www.speedtest.net/result/13180397341
User avatar
ikarus1969
Posts: 491
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: Creating the ini file for 17 disks

Post by ikarus1969 »

Again, please post the code of the ini you have so far. Without the code of the ini, "the height part" is too general to help you.
User avatar
Cptkirk363
Posts: 5
Joined: May 21st, 2022, 3:17 am
Location: South Wales, UK.

Re: Creating the ini file for 17 disks

Post by Cptkirk363 »

I've attached the INI. Here is what I've done so far, as stated I have no idea what to change to show the extra disks on the desktop apparently its the height but I don't know.
You do not have the required permissions to view the files attached to this post.
Where Ever u maybe, let your wind blow free!!
https://www.speedtest.net/result/13180397341
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4779
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Creating the ini file for 17 disks

Post by eclectic-tech »

You appear to be editing the illustro 2Disk.ini to show more drives.
The skin author tells you the 6 steps needed to add more drives:

Your posted (edited) code:

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.
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.
Name=Disk
Author=poiru
Information=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=8
colorBar=235,170,0,255
colorText=255,255,255,205
disk1=C:
disk2=D:
disk3=E:
disk4=F:
disk5=G:
disk6=H:
disk7=I:
disk8=J:
disk9=K:
disk10=L:
disk11=M:
disk12=N:
disk13=O:
disk14=S:
disk15=W:
disk16=X:
disk17=Y:

; ----------------------------------
; 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=1
UpdateDivider=120

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

[measureUsedDisk2]
Measure=FreeDiskSpace
Drive=#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=10
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,15

; ----------------------------------
; 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=Disks
; Even though the text is set to Disks, Rainmeter will display
; it as DISKS, 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/%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=["#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=["#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
Poiru tells you how to add more disk right in the skin.

You haven't done all the steps to add disk; you added all of your disk variables, which is step 1 of the instructions, but you need to do ALL of the 6 steps for EACH disk you want to add.

At that point, you will have a display that probably won't fit in the height of your screen (your original question) since 20 disks, each taking 80~100 pixels vertically to show, becomes a 2000-pixel tall skin. :uhuh:

You need to decide how you want to display this information:
Do you want all the disks showing all the time?
Can they be in multiple columns (expand the skin horizontally)?
Do you want a scrollable list that shows only a few at a time?

You can get some ideas from skins other people have created and shared on this forum using the illustro style.
Look through this looong list for samples: https://forum.rainmeter.net/search.php?keywords=illustro&fid%5B0%5D=130

Then let us know what style you are trying to display. From there we can offer more help. :welcome:
User avatar
Cptkirk363
Posts: 5
Joined: May 21st, 2022, 3:17 am
Location: South Wales, UK.

Re: Creating the ini file for 17 disks

Post by Cptkirk363 »

Its all been sorted now, I'm using a rain meter equivalent called Sidebar Diagnostics.

Does everything I need, I don't have to mess around with coding which I know little about as I have admitted and it doesn't have that nasty splash screen when windows loads.

If they have a help forum I do hope its more helpful than what I have found this one to be.
Where Ever u maybe, let your wind blow free!!
https://www.speedtest.net/result/13180397341
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4779
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Creating the ini file for 17 disks

Post by eclectic-tech »

Cptkirk363 wrote: May 23rd, 2022, 10:51 pm Its all been sorted now, I'm using a rain meter equivalent called Sidebar Diagnostics.

Does everything I need, I don't have to mess around with coding which I know little about as I have admitted and it doesn't have that nasty splash screen when windows loads.

If they have a help forum I do hope its more helpful than what I have found this one to be.
Glad you found something that works for you.

If you expected this forum to create a multi-disk for you, then "yes", you won't find that here. We will not code it for you, but you would find many members willing to help you make it.

Sorry you didn't want to "... boldly go where no one has gone before". :great: