It is currently May 1st, 2024, 6:51 pm

help me fix this skin

Get help with creating, editing & fixing problems with skins
limones185
Posts: 1
Joined: May 4th, 2012, 11:32 pm

help me fix this skin

Post by limones185 »

Hi I just made this skin is to show in a bar the amount of hard drive contents through the formula that is in the code of the skin if too full hard disk turns red and if this little vacuum or vacuum is turns blue I think my problem is with the dynamic variables as when testing with only the skin works hard and I want it to apply it to multiple hard disks. here you have the code if the skin can help me please.

hola acabo de hacer este skin que es para mostrar en una barra la cantidad de contenido del disco duro a traves de la formula que esta en el codigo del skin si esta muy lleno el disco duro se pone rojo y si esta poco vacio o vacio se pone azul mi problema creo que es con las variables dinamicas ya que al probar con solo un disco duro el skin funciona y yo esto lo quiero poder aplicar a varios discos duros. aqui os dejo el codigo del skin por si me podeis ayudar porfavor.

Code: Select all

[Variables]
Drive=d:
Drive1=e:
BarColor=13,204,219
BarBlue=13,204,219
BarRed=255,13,57


[MeasureFree]
Measure=FreeDiskSpace
Drive=#Drive#
InvertMeasure=0

[MeasureUsed]
Measure=FreeDiskSpace
Drive=#Drive#
InvertMeasure=1

[MeasureTotal]
Measure=FreeDiskSpace
Total=1
Drive=#Drive#

[MeasureFree1]
Measure=FreeDiskSpace
Drive=#Drive1#
InvertMeasure=0

[MeasureUsed1]
Measure=FreeDiskSpace
Drive=#Drive1#
InvertMeasure=1

[MeasureTotal1]
Measure=FreeDiskSpace
Total=1
Drive=#Drive1#


------------

[CalcHDUsed]
Measure=Calc
Formula=Trunc((MeasureUsed/MeasureTotal)*100)
IfAboveValue=74
IfAboveAction=!SetVariable BarColor "#BarRed#"
IfBelowValue=75
IfBellowAction=!SetVariable BarColor "#BarBlue#"
updatedivider=2

[CalcHD1Used]
Measure=Calc
Formula=Trunc((MeasureUsed1/MeasureTotal1)*100)
IfAboveValue=74
IfAboveAction=!SetVariable BarColor "#BarRed#"
IfBelowValue=75
IfBellowAction=!SetVariable BarColor "#BarBlue#"
updatedivider=2

[MeterBarHDC]
Meter=IMAGE
X=428
Y=41
H=6
W=88
SolidColor=0 ,0 ,0 ,255

[MeterRamHDC]
Meter=BAR
MeasureName=MeasureUsed
X=430
Y=43
H=2
W=84
BarOrientation=HORIZONTAL
BarColor=#BarColor#
DynamicVariables=1

[MeterBarHDC1]
Meter=IMAGE
X=528
Y=41
H=6
W=88
SolidColor=0 ,0 ,0 ,255

[MeterRamHDC1]
Meter=BAR
MeasureName=MeasureUsed1
X=530
Y=43
H=2
W=84
BarOrientation=HORIZONTAL
BarColor=#BarColor#
DynamicVariables=1