It is currently September 20th, 2019, 1:01 pm

Disk Activity

Post your work-in-progress and completed skins to share and discuss.
User avatar
balala
Rainmeter Sage
Posts: 8626
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Disk Activity

balala » June 4th, 2016, 5:45 pm

This code will show when any partition or disk (up to N:) is accessed for reading and/or writing. It wants to be somehow a replacement of the HDD LED indicator, but unlike it, this skin can indicate when the disk/partition is read (green), written (red) or both (yellow). The skin automatically detects the number of present units (from C: to N:). If you need easily can change the used letter of the disk (in the [Variables] section). In the same section can be changed the used colors (the ReadingColor, WritingColor and BothColor variables).
Comments / suggestions allowed and needed.

Code: Select all

[Metadata]
Name=Disk Activity
Author=Balala (blaci75@gmail.com)
Version=1
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Information=Displays all hard disk activity.

[Rainmeter]
Update=250
BackgroundMode=2
SolidColor=80,80,80,200
AccurateText=1
DynamicWindowSize=1
BevelType=1

[Variables]
Disk1=C:
Disk2=D:
Disk3=E:
Disk4=F:
Disk5=G:
Disk6=H:
Disk7=I:
Disk8=J:
Disk9=K:
Disk10=L:
Disk11=M:
Disk12=N:
NoActivityColor=0,0,0,40
ReadingColor=0,255,0
WritingColor=255,0,0
BothColor=255,240,0

[RoundlineStyle]
W=16
H=16
Padding=5,5,5,5
StartAngle=4.712
RotationAngle=6.283
LineLength=8
Solid=1
AntiAlias=1
AutoScale=1

[StringStyle]
X=13r
Y=13r
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Border
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CENTERCENTER
AntiAlias=1

[MeasureTotalDisk1]
Measure=FreeDiskSpace
Drive=#Disk1#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk1=0)
IfTrueAction=[!HideMeterGroup "Disk1"]
IfFalseAction=[!ShowMeterGroup "Disk1"]

[MeasureTotalDisk2]
Measure=FreeDiskSpace
Drive=#Disk2#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk2=0)
IfTrueAction=[!HideMeterGroup "Disk2"]
IfFalseAction=[!ShowMeterGroup "Disk2"]

[MeasureTotalDisk3]
Measure=FreeDiskSpace
Drive=#Disk3#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk3=0)
IfTrueAction=[!HideMeterGroup "Disk3"]
IfFalseAction=[!ShowMeterGroup "Disk3"]

[MeasureTotalDisk4]
Measure=FreeDiskSpace
Drive=#Disk4#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk4=0)
IfTrueAction=[!HideMeterGroup "Disk4"]
IfFalseAction=[!ShowMeterGroup "Disk4"]

[MeasureTotalDisk5]
Measure=FreeDiskSpace
Drive=#Disk5#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk5=0)
IfTrueAction=[!HideMeterGroup "Disk5"]
IfFalseAction=[!ShowMeterGroup "Disk5"]

[MeasureTotalDisk6]
Measure=FreeDiskSpace
Drive=#Disk6#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk6=0)
IfTrueAction=[!HideMeterGroup "Disk6"]
IfFalseAction=[!ShowMeterGroup "Disk6"]

[MeasureTotalDisk7]
Measure=FreeDiskSpace
Drive=#Disk7#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk7=0)
IfTrueAction=[!HideMeterGroup "Disk7"]
IfFalseAction=[!ShowMeterGroup "Disk7"]

[MeasureTotalDisk8]
Measure=FreeDiskSpace
Drive=#Disk8#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk8=0)
IfTrueAction=[!HideMeterGroup "Disk8"]
IfFalseAction=[!ShowMeterGroup "Disk8"]

[MeasureTotalDisk9]
Measure=FreeDiskSpace
Drive=#Disk9#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk9=0)
IfTrueAction=[!HideMeterGroup "Disk9"]
IfFalseAction=[!ShowMeterGroup "Disk9"]

[MeasureTotalDisk10]
Measure=FreeDiskSpace
Drive=#Disk10#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk10=0)
IfTrueAction=[!HideMeterGroup "Disk10"]
IfFalseAction=[!ShowMeterGroup "Disk10"]

[MeasureTotalDisk11]
Measure=FreeDiskSpace
Drive=#Disk11#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk11=0)
IfTrueAction=[!HideMeterGroup "Disk11"]
IfFalseAction=[!ShowMeterGroup "Disk11"]

[MeasureTotalDisk12]
Measure=FreeDiskSpace
Drive=#Disk12#
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(MeasureTotalDisk12=0)
IfTrueAction=[!HideMeterGroup "Disk12"]
IfFalseAction=[!ShowMeterGroup "Disk12"]

[MeasureDiskRead1]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk1#

[MeasureDiskWrite1]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk1#
IfCondition=((MeasureDiskRead1=0)&&(MeasureDiskWrite1=0))
IfTrueAction=[!SetOption MeterDisk1Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk1Activity"][!Redraw]
IfCondition2=((MeasureDiskRead1>0)&&(MeasureDiskWrite1=0))
IfTrueAction2=[!SetOption MeterDisk1Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk1Activity"][!Redraw]
IfCondition3=((MeasureDiskRead1=0)&&(MeasureDiskWrite1>0))
IfTrueAction3=[!SetOption MeterDisk1Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk1Activity"][!Redraw]
IfCondition4=((MeasureDiskRead1>0)&&(MeasureDiskWrite1>0))
IfTrueAction4=[!SetOption MeterDisk1Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk1Activity"][!Redraw]

[MeasureDiskRead2]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk2#

[MeasureDiskWrite2]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk2#
IfCondition=((MeasureDiskRead2=0)&&(MeasureDiskWrite2=0))
IfTrueAction=[!SetOption MeterDisk2Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk2Activity"][!Redraw]
IfCondition2=((MeasureDiskRead2>0)&&(MeasureDiskWrite2=0))
IfTrueAction2=[!SetOption MeterDisk2Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk2Activity"][!Redraw]
IfCondition3=((MeasureDiskRead2=0)&&(MeasureDiskWrite2>0))
IfTrueAction3=[!SetOption MeterDisk2Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk2Activity"][!Redraw]
IfCondition4=((MeasureDiskRead2>0)&&(MeasureDiskWrite2>0))
IfTrueAction4=[!SetOption MeterDisk2Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk2Activity"][!Redraw]

[MeasureDiskRead3]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk3#

[MeasureDiskWrite3]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk3#
IfCondition=((MeasureDiskRead3=0)&&(MeasureDiskWrite3=0))
IfTrueAction=[!SetOption MeterDisk3Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk3Activity"][!Redraw]
IfCondition2=((MeasureDiskRead3>0)&&(MeasureDiskWrite3=0))
IfTrueAction2=[!SetOption MeterDisk3Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk3Activity"][!Redraw]
IfCondition3=((MeasureDiskRead3=0)&&(MeasureDiskWrite3>0))
IfTrueAction3=[!SetOption MeterDisk3Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk3Activity"][!Redraw]
IfCondition4=((MeasureDiskRead3>0)&&(MeasureDiskWrite3>0))
IfTrueAction4=[!SetOption MeterDisk3Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk3Activity"][!Redraw]

[MeasureDiskRead4]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk4#

[MeasureDiskWrite4]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk4#
IfCondition=((MeasureDiskRead4=0)&&(MeasureDiskWrite4=0))
IfTrueAction=[!SetOption MeterDisk4Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk4Activity"][!Redraw]
IfCondition2=((MeasureDiskRead4>0)&&(MeasureDiskWrite4=0))
IfTrueAction2=[!SetOption MeterDisk4Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk4Activity"][!Redraw]
IfCondition3=((MeasureDiskRead4=0)&&(MeasureDiskWrite4>0))
IfTrueAction3=[!SetOption MeterDisk4Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk4Activity"][!Redraw]
IfCondition4=((MeasureDiskRead4>0)&&(MeasureDiskWrite4>0))
IfTrueAction4=[!SetOption MeterDisk4Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk4Activity"][!Redraw]

[MeasureDiskRead5]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk5#

[MeasureDiskWrite5]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk5#
IfCondition=((MeasureDiskRead5=0)&&(MeasureDiskWrite5=0))
IfTrueAction=[!SetOption MeterDisk5Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk5Activity"][!Redraw]
IfCondition2=((MeasureDiskRead5>0)&&(MeasureDiskWrite5=0))
IfTrueAction2=[!SetOption MeterDisk5Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk5Activity"][!Redraw]
IfCondition3=((MeasureDiskRead5=0)&&(MeasureDiskWrite5>0))
IfTrueAction3=[!SetOption MeterDisk5Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk5Activity"][!Redraw]
IfCondition4=((MeasureDiskRead5>0)&&(MeasureDiskWrite5>0))
IfTrueAction4=[!SetOption MeterDisk5Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk5Activity"][!Redraw]

[MeasureDiskRead6]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk6#

[MeasureDiskWrite6]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk6#
IfCondition=((MeasureDiskRead6=0)&&(MeasureDiskWrite6=0))
IfTrueAction=[!SetOption MeterDisk6Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk6Activity"][!Redraw]
IfCondition2=((MeasureDiskRead6>0)&&(MeasureDiskWrite6=0))
IfTrueAction2=[!SetOption MeterDisk6Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk6Activity"][!Redraw]
IfCondition3=((MeasureDiskRead6=0)&&(MeasureDiskWrite6>0))
IfTrueAction3=[!SetOption MeterDisk6Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk6Activity"][!Redraw]
IfCondition4=((MeasureDiskRead6>0)&&(MeasureDiskWrite6>0))
IfTrueAction4=[!SetOption MeterDisk6Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk6Activity"][!Redraw]

[MeasureDiskRead7]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk7#

[MeasureDiskWrite7]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk7#
IfCondition=((MeasureDiskRead7=0)&&(MeasureDiskWrite7=0))
IfTrueAction=[!SetOption MeterDisk7Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk7Activity"][!Redraw]
IfCondition2=((MeasureDiskRead7>0)&&(MeasureDiskWrite7=0))
IfTrueAction2=[!SetOption MeterDisk7Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk7Activity"][!Redraw]
IfCondition3=((MeasureDiskRead7=0)&&(MeasureDiskWrite7>0))
IfTrueAction3=[!SetOption MeterDisk7Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk7Activity"][!Redraw]
IfCondition4=((MeasureDiskRead7>0)&&(MeasureDiskWrite7>0))
IfTrueAction4=[!SetOption MeterDisk7Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk7Activity"][!Redraw]

[MeasureDiskRead8]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk8#

[MeasureDiskWrite8]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk8#
IfCondition=((MeasureDiskRead8=0)&&(MeasureDiskWrite8=0))
IfTrueAction=[!SetOption MeterDisk8Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk8Activity"][!Redraw]
IfCondition2=((MeasureDiskRead8>0)&&(MeasureDiskWrite8=0))
IfTrueAction2=[!SetOption MeterDisk8Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk8Activity"][!Redraw]
IfCondition3=((MeasureDiskRead8=0)&&(MeasureDiskWrite8>0))
IfTrueAction3=[!SetOption MeterDisk8Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk8Activity"][!Redraw]
IfCondition4=((MeasureDiskRead8>0)&&(MeasureDiskWrite8>0))
IfTrueAction4=[!SetOption MeterDisk8Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk8Activity"][!Redraw]

[MeasureDiskRead9]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk9#

[MeasureDiskWrite9]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk9#
IfCondition=((MeasureDiskRead9=0)&&(MeasureDiskWrite9=0))
IfTrueAction=[!SetOption MeterDisk9Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk9Activity"][!Redraw]
IfCondition2=((MeasureDiskRead9>0)&&(MeasureDiskWrite9=0))
IfTrueAction2=[!SetOption MeterDisk9Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk9Activity"][!Redraw]
IfCondition3=((MeasureDiskRead9=0)&&(MeasureDiskWrite9>0))
IfTrueAction3=[!SetOption MeterDisk9Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk9Activity"][!Redraw]
IfCondition4=((MeasureDiskRead9>0)&&(MeasureDiskWrite9>0))
IfTrueAction4=[!SetOption MeterDisk9Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk9Activity"][!Redraw]

[MeasureDiskRead10]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk10#

[MeasureDiskWrite10]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk10#
IfCondition=((MeasureDiskRead10=0)&&(MeasureDiskWrite10=0))
IfTrueAction=[!SetOption MeterDisk10Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk10Activity"][!Redraw]
IfCondition2=((MeasureDiskRead10>0)&&(MeasureDiskWrite10=0))
IfTrueAction2=[!SetOption MeterDisk10Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk10Activity"][!Redraw]
IfCondition3=((MeasureDiskRead10=0)&&(MeasureDiskWrite10>0))
IfTrueAction3=[!SetOption MeterDisk10Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk10Activity"][!Redraw]
IfCondition4=((MeasureDiskRead10>0)&&(MeasureDiskWrite10>0))
IfTrueAction4=[!SetOption MeterDisk10Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk10Activity"][!Redraw]

[MeasureDiskRead11]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk11#

[MeasureDiskWrite11]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk11#
IfCondition=((MeasureDiskRead11=0)&&(MeasureDiskWrite11=0))
IfTrueAction=[!SetOption MeterDisk11Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk11Activity"][!Redraw]
IfCondition2=((MeasureDiskRead11>0)&&(MeasureDiskWrite11=0))
IfTrueAction2=[!SetOption MeterDisk11Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk11Activity"][!Redraw]
IfCondition3=((MeasureDiskRead11=0)&&(MeasureDiskWrite11>0))
IfTrueAction3=[!SetOption MeterDisk11Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk11Activity"][!Redraw]
IfCondition4=((MeasureDiskRead11>0)&&(MeasureDiskWrite11>0))
IfTrueAction4=[!SetOption MeterDisk11Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk11Activity"][!Redraw]

[MeasureDiskRead12]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Read Bytes/sec
PerfMonInstance=#Disk12#

[MeasureDiskWrite12]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter=Disk Write Bytes/sec
PerfMonInstance=#Disk12#
IfCondition=((MeasureDiskRead12=0)&&(MeasureDiskWrite12=0))
IfTrueAction=[!SetOption MeterDisk12Activity LineColor "#NoActivityColor#"][!UpdateMeter "MeterDisk12Activity"][!Redraw]
IfCondition2=((MeasureDiskRead12>0)&&(MeasureDiskWrite12=0))
IfTrueAction2=[!SetOption MeterDisk12Activity LineColor "#ReadingColor#"][!UpdateMeter "MeterDisk12Activity"][!Redraw]
IfCondition3=((MeasureDiskRead12=0)&&(MeasureDiskWrite12>0))
IfTrueAction3=[!SetOption MeterDisk12Activity LineColor "#WritingColor#"][!UpdateMeter "MeterDisk12Activity"][!Redraw]
IfCondition4=((MeasureDiskRead12>0)&&(MeasureDiskWrite12>0))
IfTrueAction4=[!SetOption MeterDisk12Activity LineColor "#BothColor#"][!UpdateMeter "MeterDisk12Activity"][!Redraw]

[MeterDisk1Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=5
Y=0
Group=Disk1
LeftMouseUpAction=["#Disk1#"]

[MeterDisk1]
Meter=String
MeterStyle=StringStyle
Text=#Disk1#
Group=Disk1

[MeterDisk2Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=([MeterDisk1Activity:X]+[MeterDisk1Activity:W])
Y=0
DynamicVariables=1
Group=Disk2
LeftMouseUpAction=["#Disk2#"]

[MeterDisk2]
Meter=String
MeterStyle=StringStyle
Text=#Disk2#
Group=Disk2

[MeterDisk3Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=([MeterDisk2Activity:X]+[MeterDisk2Activity:W])
Y=0
DynamicVariables=1
Group=Disk3
LeftMouseUpAction=["#Disk3#"]

[MeterDisk3]
Meter=String
MeterStyle=StringStyle
Text=#Disk3#
Group=Disk3

[MeterDisk4Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=([MeterDisk3Activity:X]+[MeterDisk3Activity:W])
Y=0
DynamicVariables=1
Group=Disk4
LeftMouseUpAction=["#Disk4#"]

[MeterDisk4]
Meter=String
MeterStyle=StringStyle
Text=#Disk4#
Group=Disk4

[MeterDisk5Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=([MeterDisk4Activity:X]+[MeterDisk4Activity:W])
Y=0
DynamicVariables=1
Group=Disk5
LeftMouseUpAction=["#Disk5#"]

[MeterDisk5]
Meter=String
MeterStyle=StringStyle
Text=#Disk5#
Group=Disk5

[MeterDisk6Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=([MeterDisk5Activity:X]+[MeterDisk5Activity:W])
Y=0
DynamicVariables=1
Group=Disk6
LeftMouseUpAction=["#Disk6#"]

[MeterDisk6]
Meter=String
MeterStyle=StringStyle
Text=#Disk6#
Group=Disk6

[MeterDisk7Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=([MeterDisk6Activity:X]+[MeterDisk6Activity:W])
Y=0
DynamicVariables=1
Group=Disk7
LeftMouseUpAction=["#Disk7#"]

[MeterDisk7]
Meter=String
MeterStyle=StringStyle
Text=#Disk7#
Group=Disk7

[MeterDisk8Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=([MeterDisk7Activity:X]+[MeterDisk7Activity:W])
Y=0
DynamicVariables=1
Group=Disk8
LeftMouseUpAction=["#Disk8#"]

[MeterDisk8]
Meter=String
MeterStyle=StringStyle
Text=#Disk8#
Group=Disk8

[MeterDisk9Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=([MeterDisk8Activity:X]+[MeterDisk8Activity:W])
Y=0
DynamicVariables=1
Group=Disk9
LeftMouseUpAction=["#Disk9#"]

[MeterDisk9]
Meter=String
MeterStyle=StringStyle
Text=#Disk9#
Group=Disk9

[MeterDisk10Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=([MeterDisk9Activity:X]+[MeterDisk9Activity:W])
Y=0
DynamicVariables=1
Group=Disk10
LeftMouseUpAction=["#Disk10#"]

[MeterDisk10]
Meter=String
MeterStyle=StringStyle
Text=#Disk10#
Group=Disk10

[MeterDisk11Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=([MeterDisk10Activity:X]+[MeterDisk10Activity:W])
Y=0
DynamicVariables=1
Group=Disk11
LeftMouseUpAction=["#Disk11#"]

[MeterDisk11]
Meter=String
MeterStyle=StringStyle
Text=#Disk11#
Group=Disk11

[MeterDisk12Activity]
Meter=Roundline
MeterStyle=RoundlineStyle
X=([MeterDisk11Activity:X]+[MeterDisk11Activity:W])
Y=0
DynamicVariables=1
Group=Disk12
LeftMouseUpAction=["#Disk12#"]

[MeterDisk12]
Meter=String
MeterStyle=StringStyle
Text=#Disk12#
Group=Disk12
EDIT: Fixed a typo in the code, which I was warned about by eclectic-tech. Many thanks.
You do not have the required permissions to view the files attached to this post.
Last edited by balala on June 6th, 2016, 3:47 pm, edited 1 time in total.
Bekarfel
Posts: 203
Joined: May 16th, 2012, 5:38 am

Re: Disk Activity

Bekarfel » June 6th, 2016, 6:56 am

Why do you limit your drives from C to N?
moshi wrote:there are many Rainmeter skins that aren't really useful, so let's add another one.
jsmorley wrote:I have good news and bad news.
First the bad news. [...] We would be happy to have this happen and would love to work with anyone who is feeling ambitious.
Now the good news.
I lied, there isn't any good news...
User avatar
balala
Rainmeter Sage
Posts: 8626
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Disk Activity

balala » June 6th, 2016, 1:08 pm

Bekarfel wrote:Why do you limit your drives from C to N?
Theoretically you can add so many disks as you want, but for each of them you need 3 measures ([MeasureTotalDiskXX], [MeasureDiskReadXX] and [MeasureDiskWriteXX]) and 2 meters ([MeterDisk1Activity] and [MeterDisk1]). If Rainmeter literally would be a programming language, an iteration could be done, but it's not. So there is an upper limit of the number of usable disks. I added support for 12 disks, but if you need, you can add further, remove some of them or can change the existing drive letters into the [Variables] section (to use, for example the drives from C: to L: and X: and Z: - or as you want).
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3543
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Disk Activity

eclectic-tech » June 6th, 2016, 3:39 pm

@ balala

Nice work (as always!) 8-)

I found a typo in the fourth disk that caused it to always show because it referenced C: drive (disk1)... :(
Also added measures and meters for the remaining disks from O: to Z: (I have a backup set as Z: so I added all available letters) :D

Thanks for this handy utility! :thumbup:

Here is a packaged version with all disks (C: ~ Z:) and your metadata included:
DiskActivity_1.1.rmskin
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 8626
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Disk Activity

balala » June 6th, 2016, 3:54 pm

eclectic-tech wrote:@ balala

Nice work (as always!) 8-)
Thanks for your appreciations. Mean a lot, especially from a such experienced guy like you.
eclectic-tech wrote:I found a typo in the fourth disk that caused it to always show because it referenced C: drive (disk1)... :(
I fixed that typo. Thanks again for the warning.
eclectic-tech wrote:Also added measures and meters for the remaining disks from O: to Z: (I have a backup set as Z: so I added all available letters) :D
Cool, I didn't thought it would be a good idea to add support for so many disks, but who knows...
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3543
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Disk Activity

eclectic-tech » June 6th, 2016, 4:00 pm

You coded the skin to only show detected disks (a very good idea!), so having the measures and meters for all possible disk seems to make sense, and the skin will only show drives that exist on the end users system.

If you want to post an update with your corrections, I will remove the package I posted... thanks again! :great:
User avatar
balala
Rainmeter Sage
Posts: 8626
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Disk Activity

balala » June 6th, 2016, 4:04 pm

eclectic-tech wrote:If you want to post an update with your corrections, I will remove the package I posted... thanks again! :great:
No, at all. I think that's ok. Finally here we are a community, helping each other, I think. Leave your package there.
Bekarfel
Posts: 203
Joined: May 16th, 2012, 5:38 am

Re: Disk Activity

Bekarfel » June 18th, 2016, 4:41 am

nice skin all around, but umm, it needs more dragons. ;p
moshi wrote:there are many Rainmeter skins that aren't really useful, so let's add another one.
jsmorley wrote:I have good news and bad news.
First the bad news. [...] We would be happy to have this happen and would love to work with anyone who is feeling ambitious.
Now the good news.
I lied, there isn't any good news...
User avatar
CyborgTJB
Posts: 56
Joined: August 22nd, 2016, 4:20 am
Location: 26°26'29.14" N, 90°2'2.96" E

Re: Disk Activity

CyborgTJB » March 22nd, 2017, 4:10 pm

Can I cut J-N?
I don't need them...

I love my CPU. I don't want it to do unwanted works.
CyborG, I love and like to collect and join. :sly:
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3543
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Disk Activity

eclectic-tech » March 22nd, 2017, 4:23 pm

CyborgTJB wrote:Can I cut J-N?
I don't need them...

I love my CPU. I don't want it to do unwanted works.
Absolutely! :D

Just remove all measures and meters that refer to 'Disk8' or higher...
I don't think it will save much on your CPU, but you certainly can do it. :thumbup: