So problem is that i try to make roundline meter for my harddrive so that used space is colored and it changes color depending how much space is used. This part of the skin is on attachments. There you can see how it looks. Now it just shows black circle if i turn of used and pointer meters. Colors are just some values and I'm gonna change them if i get this one to work first.
So i tried to use "measure=calc,formula" options to read used space as %. I have checked many forums posts and tried many different things without any luck.
Code at this point:
Code: Select all
[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=#Color3#
[Metadata]
Name=Tsekataan
Author=JusMu
Information=Testiä katsoa jos sais jotain cool aikaiseksi
Version=0.1
License=Iha oma
;--------------------------------------------
;--------------------------------------------
;--------------------------------------------
; Variables
;--------------------------------------------
;--------------------------------------------
;--------------------------------------------
[Variables]
FontColor1=255,100,100,255
Color1=0,0,32,128
Color2=255,255,255,255
;Valkea
Color3=0,0,0,128
;--------------------------------------------
;--------------------------------------------
;--------------------------------------------
; MeterStyles
;--------------------------------------------
;--------------------------------------------
;--------------------------------------------
[MeterStyle1]
FontFace=ArcadeClassic
FontSize=22
FontColor=255,255,255,220
AntiAlias=1
[MeterStyle2]
FontFace=Verdana
FontSize=9
FontColor=255,255,255
;--------------------------------------------
;--------------------------------------------
;--------------------------------------------
; Measures
;--------------------------------------------
;--------------------------------------------
;--------------------------------------------
[MeasureUsedDiskG]
Measure=FreeDiskSpace
Drive=G:
InvertMeasure=1
;UpdateDivider=900
[MeasureTotalDiskG]
Measure=FreeDiskSpace
Drive=G:
Total=1
;UpdateDivider=900
[MeasureUsedDiskG%]
Measure=Calc
Formula=(100*MeasureUsedDiskG/MeasureTotalDiskG)
IfCondition=(MeasureUsedDiskG%<=40)
IfTrueAction=[!SetOption MeterG:AsemanUsedRoundMeter LineColor "255,0,0,255"][!UpdateMeter MeterG:AsemanUsedRoundMeter][!Redraw]
IfCondition2=((MeasureUsedDiskG%>40)&&(MeasureUsedDiskG%<80))
IfTrueAction2=[!SetOption MeterG:AsemanUsedRoundMeter Linecolor "0,255,0,255"][!UpdateMeter MeterG:AsemanUsedRoundMeter][!Redraw]
IfCondition3=(MeasureUsedDiskG%>=80)
IfTrueAction3=[!SetOption MeterG:AsemanUsedRoundMeter LineColor "0,0,255,255"][!UpdateMeter MeterG:AsemanUsedRoundMeter][!Redraw]
[MeasureFreeDiskG]
Measure=FreeDiskSpace
Drive=G:
UpdateDivider=900
[MeasureDiskGLabel]
Measure=FreeDiskSpace
Drive=G:
Label=1
UpdateDivider=-1
;--------------------------------------------
;--------------------------------------------
;--------------------------------------------
; METERS
;--------------------------------------------
;--------------------------------------------
;--------------------------------------------
[MeterBackground]
Meter=IMAGE
ImageName=#SKINSPATH#\CommandCenter\HardDrives\HardDrivesErikseen\HardDrivesErikseenPohja1.0.png
X=0
Y=0
W=275
H=135
[MeterHardDrivesOtsikko]
Meter=String
MeterStyle=MeterStyle1
MeasureName=MeasureDiskGLabel
X=([MeterBackground:W]/2)
Y=2
W=0
H=15
StringAlign=Center
StringEffect=Border
Text=G: %1
Antialias=1
[MeterG:AsemanTotalRoundMeter]
Meter=Roundline
MeasureName=MeasureTotalDiskG
X=50
Y=85
W=0
H=0
StartAngle=4.712
RotationAngle=6.283
LineLength=30
LineColor=255,255,255,0
Solid=1
AntiAlias=1
[MeterG:AsemanUsedRoundMeter]
Meter=Roundline
MeasureName=MeasureUsedDiskG%
X=50
Y=([MeterG:AsemanTotalRoundMeter:Y])
W=0
H=0
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=20
LineLength=30
;Percentual=1
;LineColor=100,100,255,255
Solid=1
AntiAlias=1
[MeterG:AsemanFreeRoundMeter]
Meter=Roundline
MeasureName=MeasureFreeDiskG
X=50
Y=([MeterG:AsemanTotalRoundMeter:Y])
W=0
H=0
StartAngle=4.712
RotationAngle=-6.283
LineStart=20
LineLength=30
LineColor=0,150,200,255
Solid=1
AntiAlias=1
[MeterG:AsemanPointer]
Meter=Roundline
MeasureName=MeasureUsedDiskG
X=50
Y=([MeterG:AsemanTotalRoundMeter:Y])
W=0
H=0
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineWidth=5
LineStart=20
LineLength=30
LineColor=217,54,54,255
AntiAlias=1
[MeterG:AsemanTeksti]
Meter=String
MeterStyle=MeterStyle2
X=50
Y=85
W=0
H=0
FontColor=#Color2#
StringAlign=CenterCenter
AntiAlias=1
Text=G:
AutoScale=1
[MeterG:AsemanUsed]
Meter=String
MeterStyle=Meterstyle2
MeasureName=MeasureUsedDiskG
X=([MeterG:AsemanTotalRoundMeter:X]+35)
Y=([MeterG:AsemanTotalRoundMeter:Y]-15)
W=110
H=15
FontColor=#Color2#
AntiAlias=1
StringAlign=LeftBottom
;Percentual=1
Text=Used: %1B
AutoScale=1
[MeterG:AsemanUsed%]
Meter=String
MeterStyle=Meterstyle2
MeasureName=MeasureUsedDiskG
X=([MeterG:AsemanUsed:X]+[MeterG:AsemanUsed:W])
Y=([MeterG:AsemanTotalRoundMeter:Y]-15)
W=0
H=0
FontColor=#Color2#
AntiAlias=1
Percentual=1
StringAlign=LeftBottom
Text=(%1%)
AutoScale=1
[MeterG:AsemanFree]
Meter=String
MeterStyle=MeterStyle2
MeasureName=MeasureFreeDiskG
X=([MeterG:AsemanTotalRoundMeter:X]+35)
Y=5R
W=110
H=0
FontColor=#Color2#
AntiAlias=1
;Percentual=1
Text=Free: %1B
AutoScale=1
[MeterG:AsemanFree%]
Meter=String
MeterStyle=MeterStyle2
MeasureName=MeasureFreeDiskG
X=([MeterG:AsemanFree:X]+[MeterG:AsemanFree:W])
Y=([MeterG:AsemanFree:Y])
W=0
H=15
FontColor=#Color2#
AntiAlias=1
Percentual=1
StringAlign=Left
Text=(%1%)
AutoScale=1
[MeterG:Asemankäyttö]
Meter=String
MeterStyle=MeterStyle2
MeasureName=MeasureTotalDiskG
MeasureName2=MeasureUsedDiskG
X=([MeterG:AsemanTotalRoundMeter:X]+35)
Y=5R
W=0
H=15
FontColor=#Color2#
AntiAlias=1
Text=Total: %2B / %1B
AutoScale=1
I just really doesn't find the problem. I havent used formulas before so i think problem lies somewhere on that [MeasureUsedDiskG%] or [MeterG:AsemanUsedRoundMeter]. Can someone tell me where the problem lies or am I doing this wrong way?
Ps. Im from finland so those names can be confusing, but that shouldn't make any difference otherwise.
Thanks for everyone willing to help Ask if you need more information.