It is currently April 27th, 2024, 9:46 pm

Bar-CPU Meter bug.

Report bugs with the Rainmeter application and suggest features.
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Bar-CPU Meter bug.

Post by Keilvethe »

Hi, there. So, I made this CPU/RAM Meter, with a horizontal bar progression showing each core usage, running from lefto to right. It used to look somewhat like this:
CPUMeter1.jpg
Now, having updated to version 2.3.1, the meter isn't working right anymore. Time, uptime and RAM meter all work just fine, as does the "x%" value for each CPU Core. Its the bar graphic that isn't working. Now, instead of each individual bar showing individual, corresponding values, they all show the current value, with no discernible left-to-right movement. Here's how it looks like now:
CPUMeterBugged.png
The Meter uses Calc measure, with an individual Bar meter for each measure, each showing a corresponding value of Core usage. I've done several changes to the measures and meter configurations, to no avail. Here's a copy of the last fully-working version of the skin:

Code: Select all

[Rainmeter]
Author=Keilvethe
AppVersion=1
Update=1000

[Metadata]
Name=CPU Meter
Config=CPU METER
Description=Shows CPU(s) activity and RAM usage.
Version=1.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]
FontName=imagine font
Background=bg_clockcpu2.png
Color=255,255,255
High=90
HighColor=800000
Low=80
LowColor=100,100,100,255

;MEASURES

[MeasureTime]
Measure=Time
Format="%H:%M:%S"

[MeasureUpTime]
Measure=UpTime
Format="%4!02i!:%3!02i!:%2!02i!:%1!02i!"

[MeasureCPUCore1]
Measure=CPU
Processor=1
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar1 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar1 BarColor ""][!Redraw]

[Calc0]
Measure=Calc
Formula=MeasureCPUCore1
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2 BarColor ""][!Redraw]

[Calc1]
Measure=Calc
Formula=Calc0
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar3 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar3 BarColor ""][!Redraw]

[Calc2]
Measure=Calc
Formula=Calc1
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar4 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar4 BarColor ""][!Redraw]

[Calc3]
Measure=Calc
Formula=Calc2
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar5 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar5 BarColor ""][!Redraw]

[Calc4]
Measure=Calc
Formula=Calc3
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar6 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar6 BarColor ""][!Redraw]

[Calc5]
Measure=Calc
Formula=Calc4
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar7 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar7 BarColor ""][!Redraw]

[Calc6]
Measure=Calc
Formula=Calc5
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar8 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar8 BarColor ""][!Redraw]

[Calc7]
Measure=Calc
Formula=Calc6
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar9 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar9 BarColor ""][!Redraw]

[Calc8]
Measure=Calc
Formula=Calc7
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar10 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar10 BarColor ""][!Redraw]

[Calc9]
Measure=Calc
Formula=Calc8
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar11 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar11 BarColor ""][!Redraw]

[Calc10]
Measure=Calc
Formula=Calc9
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar12 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar12 BarColor ""][!Redraw]

[Calc11]
Measure=Calc
Formula=Calc10
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar13 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar13 BarColor ""][!Redraw]

[Calc12]
Measure=Calc
Formula=Calc11
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar14 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar14 BarColor ""][!Redraw]

[Calc13]
Measure=Calc
Formula=Calc12
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar15 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar15 BarColor ""][!Redraw]

[Calc14]
Measure=Calc
Formula=Calc13
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar16 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar16 BarColor ""][!Redraw]

[Calc15]
Measure=Calc
Formula=Calc14
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar17 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar17 BarColor ""][!Redraw]

[Calc16]
Measure=Calc
Formula=Calc15
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar18 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar18 BarColor ""][!Redraw]

[Calc17]
Measure=Calc
Formula=Calc16
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar19 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar19 BarColor ""][!Redraw]

[Calc18]
Measure=Calc
Formula=Calc17
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar20 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar20 BarColor ""][!Redraw]

[Calc19]
Measure=Calc
Formula=Calc18
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar21 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar21 BarColor ""][!Redraw]

[Calc20]
Measure=Calc
Formula=Calc19
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar22 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar22 BarColor ""][!Redraw]

[Calc21]
Measure=Calc
Formula=Calc20
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar23 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar23 BarColor ""][!Redraw]

[Calc22]
Measure=Calc
Formula=Calc21
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar24 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar24 BarColor ""][!Redraw]

[Calc23]
Measure=Calc
Formula=Calc22
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar25 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar25 BarColor ""][!Redraw]

[Calc24]
Measure=Calc
Formula=Calc23
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar26 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar26 BarColor ""][!Redraw]

[Calc25]
Measure=Calc
Formula=Calc24
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar27 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar27 BarColor ""][!Redraw]

[Calc26]
Measure=Calc
Formula=Calc25
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar28 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar28 BarColor ""][!Redraw]

[Calc27]
Measure=Calc
Formula=Calc26
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar29 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar29 BarColor ""][!Redraw]

[Calc28]
Measure=Calc
Formula=Calc27
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar30 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar30 BarColor ""][!Redraw]

[Calc29]
Measure=Calc
Formula=Calc28
MaxValue=100

[MeasureCPUCore2]
Measure=CPU
Processor=2
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-1 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-1 BarColor ""][!Redraw]

[Calc30]
Measure=Calc
Formula=MeasureCPUCore2
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-2 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-2 BarColor ""][!Redraw]

[Calc31]
Measure=Calc
Formula=Calc30
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-3 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-3 BarColor ""][!Redraw]

[Calc32]
Measure=Calc
Formula=Calc31
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-4 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-4 BarColor ""][!Redraw]

[Calc33]
Measure=Calc
Formula=Calc32
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-5 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-5 BarColor ""][!Redraw]

[Calc34]
Measure=Calc
Formula=Calc33
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-6 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-6 BarColor ""][!Redraw]

[Calc35]
Measure=Calc
Formula=Calc34
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-7 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-7 BarColor ""][!Redraw]

[Calc36]
Measure=Calc
Formula=Calc35
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-8 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-8 BarColor ""][!Redraw]

[Calc37]
Measure=Calc
Formula=Calc36
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-9 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-9 BarColor ""][!Redraw]

[Calc38]
Measure=Calc
Formula=Calc37
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-10 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-10 BarColor ""][!Redraw]

[Calc39]
Measure=Calc
Formula=Calc38
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-11 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-11 BarColor ""][!Redraw]

[Calc40]
Measure=Calc
Formula=Calc39
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-12 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-12 BarColor ""][!Redraw]

[Calc41]
Measure=Calc
Formula=Calc40
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-13 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-13 BarColor ""][!Redraw]

[Calc42]
Measure=Calc
Formula=Calc41
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-14 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-14 BarColor ""][!Redraw]

[Calc43]
Measure=Calc
Formula=Calc42
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-15 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-15 BarColor ""][!Redraw]

[Calc44]
Measure=Calc
Formula=Calc43
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-16 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-16 BarColor ""][!Redraw]

[Calc45]
Measure=Calc
Formula=Calc44
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-17 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-17 BarColor ""][!Redraw]

[Calc46]
Measure=Calc
Formula=Calc45
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-18 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-18 BarColor ""][!Redraw]

[Calc47]
Measure=Calc
Formula=Calc46
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-19 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-19 BarColor ""][!Redraw]

[Calc48]
Measure=Calc
Formula=Calc47
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-20 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-20 BarColor ""][!Redraw]

[Calc49]
Measure=Calc
Formula=Calc48
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-21 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-21 BarColor ""][!Redraw]

[Calc50]
Measure=Calc
Formula=Calc49
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-22 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-22 BarColor ""][!Redraw]

[Calc51]
Measure=Calc
Formula=Calc50
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-23 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-23 BarColor ""][!Redraw]

[Calc52]
Measure=Calc
Formula=Calc51
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-24 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-24 BarColor ""][!Redraw]

[Calc53]
Measure=Calc
Formula=Calc52
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-25 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-25 BarColor ""][!Redraw]

[Calc54]
Measure=Calc
Formula=Calc53
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-26 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-26 BarColor ""][!Redraw]

[Calc55]
Measure=Calc
Formula=Calc54
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-27 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-27 BarColor ""][!Redraw]

[Calc56]
Measure=Calc
Formula=Calc55
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-28 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-28 BarColor ""][!Redraw]

[Calc57]
Measure=Calc
Formula=Calc56
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-29 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-29 BarColor ""][!Redraw]

[Calc58]
Measure=Calc
Formula=Calc57
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-30 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-30 BarColor ""][!Redraw]

[Calc59]
Measure=Calc
Formula=Calc58
MaxValue=100

[MeasureRAM]
Measure=PhysicalMemory

[MeasureFreeRAM]
Measure=PhysicalMemory
InvertMeasure=1

;METERS

[Background]
Meter=IMAGE
ImageName=#Background#
X=0
Y=0
W=145
H=197
ColorMatrix1=1;1;1;0;0
ColorMatrix2=1;1;1;0;0
ColorMatrix3=1;1;1;0;0
ColorMatrix5=-.5;-.5;-.5;0;1
AntiAlias=1

[Icon]
Meter=IMAGE
ImageName=Icon.png
X=120
Y=2
W=20
H=23
AntiAlias=1

[MeterTime]
MeasureName=MeasureTime
Meter=String
X=6
Y=20
StringStyle=Bold
FontColor=#Color#
FontSize=17
FontFace=#FontName#
AntiAlias=1

[MeterUpTime]
MeasureName=MeasureUpTime
Meter=STRING
X=62
Y=42
StringStyle=Bold
FontColor=#Color#
FontSize=8
FontFace=#FontName#
AntiAlias=1

[MeterCPU1Text]
Meter=String
MeasureName=MeasureCPUCore1
Percentual=1
X=75
Y=112
FontFace=#FontName#
FontColor=#Color#
FontSize=8
Postfix="%"
AntiAlias=1

[BarStyle]
BarColor=#LowColor#
BarOrientation=VERTICAL
X=1R
Y=60
H=44
W=2

[Bar1]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc0
X=12
AntiAlias=1

[Bar2]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc1
AntiAlias=1

[Bar3]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc2
AntiAlias=1

[Bar4]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc3
AntiAlias=1

[Bar5]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc4
AntiAlias=1

[Bar6]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc5
AntiAlias=1

[Bar7]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc6
AntiAlias=1

[Bar8]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc7
AntiAlias=1

[Bar9]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc8
AntiAlias=1

[Bar10]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc9
AntiAlias=1

[Bar11]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc10
AntiAlias=1

[Bar12]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc11
AntiAlias=1

[Bar13]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc12
AntiAlias=1

[Bar14]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc13
AntiAlias=1

[Bar15]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc14
AntiAlias=1

[Bar16]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc15
AntiAlias=1

[Bar17]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc16
AntiAlias=1

[Bar18]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc17
AntiAlias=1

[Bar19]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc18
AntiAlias=1

[Bar20]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc19
AntiAlias=1

[Bar21]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc20
AntiAlias=1

[Bar22]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc21
AntiAlias=1

[Bar23]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc22
AntiAlias=1

[Bar24]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc23
AntiAlias=1

[Bar25]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc24
AntiAlias=1

[Bar26]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc25
AntiAlias=1

[Bar27]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc26
AntiAlias=1

[Bar28]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc27
AntiAlias=1

[Bar29]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc28
AntiAlias=1

[Bar30]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc29
AntiAlias=1

;[MeterCPU1Histogram]
;Meter=Histogram
;MeasureName=MeasureCPUCore1
;X=8
;Y=60
;W=101
;H=44
;PrimaryColor=FFFFFF40
;SolidColor=50,50,50,200
;AntiAlias=1

[MeterCPU2Text]
Meter=String
MeasureName=MeasureCPUCore2
Percentual=1
X=75
Y=184
FontFace=#FontName#
FontColor=#Color#
FontSize=8
Text="%1%"
AntiAlias=1

[BarStyle2]
BarColor=#LowColor#
BarOrientation=VERTICAL
X=1R
Y=132
H=44
W=2

[Bar2-1]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc30
X=12
AntiAlias=1

[Bar2-2]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc31
AntiAlias=1

[Bar2-3]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc32
AntiAlias=1

[Bar2-4]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc33
AntiAlias=1

[Bar2-5]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc34
AntiAlias=1

[Bar2-6]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc35
AntiAlias=1

[Bar2-7]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc36
AntiAlias=1

[Bar2-8]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc37
AntiAlias=1

[Bar2-9]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc38
AntiAlias=1

[Bar2-10]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc39
AntiAlias=1

[Bar2-11]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc40
AntiAlias=1

[Bar2-12]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc41
AntiAlias=1

[Bar2-13]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc42
AntiAlias=1

[Bar2-14]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc43
AntiAlias=1

[Bar2-15]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc44
AntiAlias=1

[Bar2-16]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc45
AntiAlias=1

[Bar2-17]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc46
AntiAlias=1

[Bar2-18]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc47
AntiAlias=1

[Bar2-19]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc48
AntiAlias=1

[Bar2-20]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc49
AntiAlias=1

[Bar2-21]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc50
AntiAlias=1

[Bar2-22]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc51
AntiAlias=1

[Bar2-23]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc52
AntiAlias=1

[Bar2-24]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc53
AntiAlias=1

[Bar2-25]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc54
AntiAlias=1

[Bar2-26]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc55
AntiAlias=1

[Bar2-27]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc56
AntiAlias=1

[Bar2-28]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc57
AntiAlias=1

[Bar2-29]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc58
AntiAlias=1

[Bar2-30]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc59
AntiAlias=1

;[MeterCPU2Histogram]
;Meter=Histogram
;MeasureName=MeasureCPUCore2
;X=8
;Y=132
;W=101
;H=44
;PrimaryColor=FFFFFF40
;SolidColor=50,50,50,200
;AntiAlias=1

[MeterRAMText]
Meter=String
MeasureName=MeasureRAM
X=115
Y=183
Scale=1048576
FontFace=#FontName#
FontColor=170,8,8,255
StringStyle=Bold
FontSize=7
Text="%1"
AntiAlias=1

[MeterRAMText2]
Meter=String
MeasureName=MeasureFreeRAM
X=117
Y=55
Scale=1048576
FontFace=#FontName#
FontColor=125,125,125,255
StringStyle=Bold
FontSize=7
Text="%1"
AntiAlias=1

[MeterRAMBar]
MeasureName=MeasureRAM
Meter=BAR
X=120
Y=64
W=18
H=116
BarColor=128,0,0,200
SolidColor=50,50,50,200
BarOrientation=VERTICAL
AntiAlias=1

[Divider]
Meter=Image
ImageName=Divider.png
X=120
y=63
AntiAlias=1
Any help fixing this bug will be greatly apreciated.
You do not have the required permissions to view the files attached to this post.
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: Bar-CPU Meter bug.

Post by poiru »

In Rainmeter 2.3, the Calc measures do not have the "delay" you are making use of when referencing a measure that is defined earlier. To get the delay with 2.3, you can reverse the order of your measures. In other words, instead of...

Code: Select all

[Calc0]
[Calc1]
[Calc2]
...
[Calc29]
... use:

Code: Select all

[Calc29]
...
[Calc2]
[Calc1]
[Calc0]
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Re: Bar-CPU Meter bug.

Post by Keilvethe »

Thanks fot he reply, poiru, but it didn't work. I reversed the orther of the measures, to no avail. Then, I added the new order of measure to the bar meters, again, to no avail. Here's how it ended up:

Code: Select all

[Rainmeter]
Author=Keilvethe
AppVersion=1
Update=1000

[Metadata]
Name=CPU Meter
Config=CPU METER
Description=Shows CPU(s) activity and RAM usage.
Version=1.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]
FontName=imagine font
Background=bg_clockcpu2.png
Color=255,255,255
High=90
HighColor=800000
Low=80
LowColor=100,100,100,255

;MEASURES

[MeasureTime]
Measure=Time
Format="%H:%M:%S"

[MeasureUpTime]
Measure=UpTime
Format="%4!02i!:%3!02i!:%2!02i!:%1!02i!"

[MeasureCPUCore1]
Measure=CPU
Processor=1
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar1 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar1 BarColor ""][!Redraw]

[Calc29]
Measure=Calc
Formula=MeasureCPUCore1
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2 BarColor ""][!Redraw]

[Calc28]
Measure=Calc
Formula=Calc29
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar3 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar3 BarColor ""][!Redraw]

[Calc27]
Measure=Calc
Formula=Calc28
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar4 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar4 BarColor ""][!Redraw]

[Calc26]
Measure=Calc
Formula=Calc27
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar5 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar5 BarColor ""][!Redraw]

[Calc25]
Measure=Calc
Formula=Calc26
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar6 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar6 BarColor ""][!Redraw]

[Calc24]
Measure=Calc
Formula=Calc25
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar7 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar7 BarColor ""][!Redraw]

[Calc23]
Measure=Calc
Formula=Calc24
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar8 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar8 BarColor ""][!Redraw]

[Calc22]
Measure=Calc
Formula=Calc23
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar9 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar9 BarColor ""][!Redraw]

[Calc21]
Measure=Calc
Formula=Calc22
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar10 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar10 BarColor ""][!Redraw]

[Calc20]
Measure=Calc
Formula=Calc21
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar11 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar11 BarColor ""][!Redraw]

[Calc19]
Measure=Calc
Formula=Calc20
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar12 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar12 BarColor ""][!Redraw]

[Calc18]
Measure=Calc
Formula=Calc19
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar13 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar13 BarColor ""][!Redraw]

[Calc17]
Measure=Calc
Formula=Calc18
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar14 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar14 BarColor ""][!Redraw]

[Calc16]
Measure=Calc
Formula=Calc17
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar15 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar15 BarColor ""][!Redraw]

[Calc15]
Measure=Calc
Formula=Calc16
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar16 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar16 BarColor ""][!Redraw]

[Calc14]
Measure=Calc
Formula=Calc15
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar17 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar17 BarColor ""][!Redraw]

[Calc13]
Measure=Calc
Formula=Calc14
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar18 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar18 BarColor ""][!Redraw]

[Calc12]
Measure=Calc
Formula=Calc13
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar19 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar19 BarColor ""][!Redraw]

[Calc11]
Measure=Calc
Formula=Calc12
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar20 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar20 BarColor ""][!Redraw]

[Calc10]
Measure=Calc
Formula=Calc11
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar21 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar21 BarColor ""][!Redraw]

[Calc9]
Measure=Calc
Formula=Calc10
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar22 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar22 BarColor ""][!Redraw]

[Calc8]
Measure=Calc
Formula=Calc9
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar23 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar23 BarColor ""][!Redraw]

[Calc7]
Measure=Calc
Formula=Calc8
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar24 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar24 BarColor ""][!Redraw]

[Calc6]
Measure=Calc
Formula=Calc7
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar25 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar25 BarColor ""][!Redraw]

[Calc5]
Measure=Calc
Formula=Calc6
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar26 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar26 BarColor ""][!Redraw]

[Calc4]
Measure=Calc
Formula=Calc5
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar27 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar27 BarColor ""][!Redraw]

[Calc3]
Measure=Calc
Formula=Calc4
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar28 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar28 BarColor ""][!Redraw]

[Calc2]
Measure=Calc
Formula=Calc3
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar29 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar29 BarColor ""][!Redraw]

[Calc1]
Measure=Calc
Formula=Calc2
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar30 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar30 BarColor ""][!Redraw]

[Calc0]
Measure=Calc
Formula=Calc1
MaxValue=100

[MeasureCPUCore2]
Measure=CPU
Processor=2
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-1 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-1 BarColor ""][!Redraw]

[Calc59]
Measure=Calc
Formula=MeasureCPUCore2
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-2 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-2 BarColor ""][!Redraw]

[Calc58]
Measure=Calc
Formula=Calc59
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-3 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-3 BarColor ""][!Redraw]

[Calc57]
Measure=Calc
Formula=Calc58
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-4 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-4 BarColor ""][!Redraw]

[Calc56]
Measure=Calc
Formula=Calc57
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-5 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-5 BarColor ""][!Redraw]

[Calc55]
Measure=Calc
Formula=Calc56
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-6 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-6 BarColor ""][!Redraw]

[Calc54]
Measure=Calc
Formula=Calc55
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-7 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-7 BarColor ""][!Redraw]

[Calc53]
Measure=Calc
Formula=Calc54
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-8 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-8 BarColor ""][!Redraw]

[Calc52]
Measure=Calc
Formula=Calc53
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-9 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-9 BarColor ""][!Redraw]

[Calc51]
Measure=Calc
Formula=Calc52
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-10 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-10 BarColor ""][!Redraw]

[Calc50]
Measure=Calc
Formula=Calc51
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-11 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-11 BarColor ""][!Redraw]

[Calc49]
Measure=Calc
Formula=Calc50
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-12 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-12 BarColor ""][!Redraw]

[Calc48]
Measure=Calc
Formula=Calc49
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-13 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-13 BarColor ""][!Redraw]

[Calc47]
Measure=Calc
Formula=Calc48
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-14 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-14 BarColor ""][!Redraw]

[Calc46]
Measure=Calc
Formula=Calc47
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-15 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-15 BarColor ""][!Redraw]

[Calc45]
Measure=Calc
Formula=Calc46
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-16 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-16 BarColor ""][!Redraw]

[Calc44]
Measure=Calc
Formula=Calc45
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-17 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-17 BarColor ""][!Redraw]

[Calc43]
Measure=Calc
Formula=Calc44
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-18 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-18 BarColor ""][!Redraw]

[Calc42]
Measure=Calc
Formula=Calc43
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-19 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-19 BarColor ""][!Redraw]

[Calc41]
Measure=Calc
Formula=Calc42
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-20 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-20 BarColor ""][!Redraw]

[Calc40]
Measure=Calc
Formula=Calc41
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-21 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-21 BarColor ""][!Redraw]

[Calc39]
Measure=Calc
Formula=Calc40
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-22 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-22 BarColor ""][!Redraw]

[Calc38]
Measure=Calc
Formula=Calc39
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-23 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-23 BarColor ""][!Redraw]

[Calc37]
Measure=Calc
Formula=Calc38
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-24 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-24 BarColor ""][!Redraw]

[Calc36]
Measure=Calc
Formula=Calc37
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-25 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-25 BarColor ""][!Redraw]

[Calc35]
Measure=Calc
Formula=Calc36
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-26 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-26 BarColor ""][!Redraw]

[Calc34]
Measure=Calc
Formula=Calc35
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-27 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-27 BarColor ""][!Redraw]

[Calc33]
Measure=Calc
Formula=Calc34
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-28 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-28 BarColor ""][!Redraw]

[Calc32]
Measure=Calc
Formula=Calc33
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-29 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-29 BarColor ""][!Redraw]

[Calc31]
Measure=Calc
Formula=Calc32
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-30 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-30 BarColor ""][!Redraw]

[Calc30]
Measure=Calc
Formula=Calc31
MaxValue=100

[MeasureRAM]
Measure=PhysicalMemory

[MeasureFreeRAM]
Measure=PhysicalMemory
InvertMeasure=1

;METERS

[Background]
Meter=IMAGE
ImageName=#Background#
X=0
Y=0
W=145
H=197
ColorMatrix1=1;1;1;0;0
ColorMatrix2=1;1;1;0;0
ColorMatrix3=1;1;1;0;0
ColorMatrix5=-.5;-.5;-.5;0;1
AntiAlias=1

[Icon]
Meter=IMAGE
ImageName=Icon.png
X=120
Y=2
W=20
H=23
AntiAlias=1

[MeterTime]
MeasureName=MeasureTime
Meter=String
X=6
Y=20
StringStyle=Bold
FontColor=#Color#
FontSize=17
FontFace=#FontName#
AntiAlias=1

[MeterUpTime]
MeasureName=MeasureUpTime
Meter=STRING
X=62
Y=42
StringStyle=Bold
FontColor=#Color#
FontSize=8
FontFace=#FontName#
AntiAlias=1

[MeterCPU1Text]
Meter=String
MeasureName=MeasureCPUCore1
Percentual=1
X=75
Y=112
FontFace=#FontName#
FontColor=#Color#
FontSize=8
Postfix="%"
AntiAlias=1

[BarStyle]
BarColor=#LowColor#
BarOrientation=VERTICAL
X=1R
Y=60
H=44
W=2

[Bar1]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc29
X=12
AntiAlias=1

[Bar2]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc28
AntiAlias=1

[Bar3]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc27
AntiAlias=1

[Bar4]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc26
AntiAlias=1

[Bar5]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc25
AntiAlias=1

[Bar6]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc24
AntiAlias=1

[Bar7]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc23
AntiAlias=1

[Bar8]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc22
AntiAlias=1

[Bar9]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc21
AntiAlias=1

[Bar10]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc20
AntiAlias=1

[Bar11]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc19
AntiAlias=1

[Bar12]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc18
AntiAlias=1

[Bar13]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc17
AntiAlias=1

[Bar14]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc16
AntiAlias=1

[Bar15]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc15
AntiAlias=1

[Bar16]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc14
AntiAlias=1

[Bar17]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc13
AntiAlias=1

[Bar18]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc12
AntiAlias=1

[Bar19]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc11
AntiAlias=1

[Bar20]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc10
AntiAlias=1

[Bar21]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc9
AntiAlias=1

[Bar22]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc8
AntiAlias=1

[Bar23]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc7
AntiAlias=1

[Bar24]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc6
AntiAlias=1

[Bar25]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc5
AntiAlias=1

[Bar26]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc4
AntiAlias=1

[Bar27]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc3
AntiAlias=1

[Bar28]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc2
AntiAlias=1

[Bar29]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc1
AntiAlias=1

[Bar30]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc0
AntiAlias=1

;[MeterCPU1Histogram]
;Meter=Histogram
;MeasureName=MeasureCPUCore1
;X=8
;Y=60
;W=101
;H=44
;PrimaryColor=FFFFFF40
;SolidColor=50,50,50,200
;AntiAlias=1

[MeterCPU2Text]
Meter=String
MeasureName=MeasureCPUCore2
Percentual=1
X=75
Y=184
FontFace=#FontName#
FontColor=#Color#
FontSize=8
Text="%1%"
AntiAlias=1

[BarStyle2]
BarColor=#LowColor#
BarOrientation=VERTICAL
X=1R
Y=132
H=44
W=2

[Bar2-1]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc59
X=12
AntiAlias=1

[Bar2-2]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc58
AntiAlias=1

[Bar2-3]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc57
AntiAlias=1

[Bar2-4]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc56
AntiAlias=1

[Bar2-5]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc55
AntiAlias=1

[Bar2-6]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc54
AntiAlias=1

[Bar2-7]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc53
AntiAlias=1

[Bar2-8]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc52
AntiAlias=1

[Bar2-9]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc51
AntiAlias=1

[Bar2-10]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc50
AntiAlias=1

[Bar2-11]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc49
AntiAlias=1

[Bar2-12]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc48
AntiAlias=1

[Bar2-13]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc47
AntiAlias=1

[Bar2-14]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc46
AntiAlias=1

[Bar2-15]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc45
AntiAlias=1

[Bar2-16]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc44
AntiAlias=1

[Bar2-17]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc43
AntiAlias=1

[Bar2-18]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc42
AntiAlias=1

[Bar2-19]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc41
AntiAlias=1

[Bar2-20]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc40
AntiAlias=1

[Bar2-21]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc39
AntiAlias=1

[Bar2-22]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc38
AntiAlias=1

[Bar2-23]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc37
AntiAlias=1

[Bar2-24]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc36
AntiAlias=1

[Bar2-25]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc35
AntiAlias=1

[Bar2-26]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc34
AntiAlias=1

[Bar2-27]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc33
AntiAlias=1

[Bar2-28]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc32
AntiAlias=1

[Bar2-29]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc31
AntiAlias=1

[Bar2-30]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc30
AntiAlias=1

;[MeterCPU2Histogram]
;Meter=Histogram
;MeasureName=MeasureCPUCore2
;X=8
;Y=132
;W=101
;H=44
;PrimaryColor=FFFFFF40
;SolidColor=50,50,50,200
;AntiAlias=1

[MeterRAMText]
Meter=String
MeasureName=MeasureRAM
X=115
Y=183
Scale=1048576
FontFace=#FontName#
FontColor=170,8,8,255
StringStyle=Bold
FontSize=7
Text="%1"
AntiAlias=1

[MeterRAMText2]
Meter=String
MeasureName=MeasureFreeRAM
X=117
Y=55
Scale=1048576
FontFace=#FontName#
FontColor=125,125,125,255
StringStyle=Bold
FontSize=7
Text="%1"
AntiAlias=1

[MeterRAMBar]
MeasureName=MeasureRAM
Meter=BAR
X=120
Y=64
W=18
H=116
BarColor=128,0,0,200
SolidColor=50,50,50,200
BarOrientation=VERTICAL
AntiAlias=1

[Divider]
Meter=Image
ImageName=Divider.png
X=120
y=63
AntiAlias=1
User avatar
Brian
Developer
Posts: 2688
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Bar-CPU Meter bug.

Post by Brian »

Keilvethe wrote:Thanks fot he reply, poiru, but it didn't work. I reversed the orther of the measures, to no avail. Then, I added the new order of measure to the bar meters, again, to no avail.
There is no need to change anything BUT the order of measure (ie. You don't need to change the "content" of any measure).

Here you go:

Code: Select all

[Rainmeter]
Author=Keilvethe
AppVersion=1
Update=1000

[Metadata]
Name=CPU Meter
Config=CPU METER
Description=Shows CPU(s) activity and RAM usage.
Version=1.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]
FontName=imagine font
Background=bg_clockcpu2.png
Color=255,255,255
High=90
HighColor=800000
Low=80
LowColor=100,100,100,255

;MEASURES

[MeasureTime]
Measure=Time
Format="%H:%M:%S"

[MeasureUpTime]
Measure=UpTime
Format="%4!02i!:%3!02i!:%2!02i!:%1!02i!"

[MeasureCPUCore1]
Measure=CPU
Processor=1
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar1 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar1 BarColor ""][!Redraw]

[Calc29]
Measure=Calc
Formula=Calc28
MaxValue=100

[Calc28]
Measure=Calc
Formula=Calc27
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar30 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar30 BarColor ""][!Redraw]

[Calc27]
Measure=Calc
Formula=Calc26
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar29 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar29 BarColor ""][!Redraw]

[Calc26]
Measure=Calc
Formula=Calc25
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar28 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar28 BarColor ""][!Redraw]

[Calc25]
Measure=Calc
Formula=Calc24
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar27 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar27 BarColor ""][!Redraw]

[Calc24]
Measure=Calc
Formula=Calc23
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar26 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar26 BarColor ""][!Redraw]

[Calc23]
Measure=Calc
Formula=Calc22
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar25 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar25 BarColor ""][!Redraw]

[Calc22]
Measure=Calc
Formula=Calc21
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar24 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar24 BarColor ""][!Redraw]

[Calc21]
Measure=Calc
Formula=Calc20
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar23 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar23 BarColor ""][!Redraw]

[Calc20]
Measure=Calc
Formula=Calc19
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar22 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar22 BarColor ""][!Redraw]

[Calc19]
Measure=Calc
Formula=Calc18
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar21 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar21 BarColor ""][!Redraw]

[Calc18]
Measure=Calc
Formula=Calc17
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar20 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar20 BarColor ""][!Redraw]

[Calc17]
Measure=Calc
Formula=Calc16
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar19 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar19 BarColor ""][!Redraw]

[Calc16]
Measure=Calc
Formula=Calc15
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar18 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar18 BarColor ""][!Redraw]

[Calc15]
Measure=Calc
Formula=Calc14
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar17 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar17 BarColor ""][!Redraw]

[Calc14]
Measure=Calc
Formula=Calc13
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar16 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar16 BarColor ""][!Redraw]

[Calc13]
Measure=Calc
Formula=Calc12
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar15 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar15 BarColor ""][!Redraw]

[Calc12]
Measure=Calc
Formula=Calc11
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar14 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar14 BarColor ""][!Redraw]

[Calc11]
Measure=Calc
Formula=Calc10
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar13 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar13 BarColor ""][!Redraw]

[Calc10]
Measure=Calc
Formula=Calc9
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar12 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar12 BarColor ""][!Redraw]

[Calc9]
Measure=Calc
Formula=Calc8
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar11 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar11 BarColor ""][!Redraw]

[Calc8]
Measure=Calc
Formula=Calc7
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar10 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar10 BarColor ""][!Redraw]

[Calc7]
Measure=Calc
Formula=Calc6
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar9 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar9 BarColor ""][!Redraw]

[Calc6]
Measure=Calc
Formula=Calc5
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar8 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar8 BarColor ""][!Redraw]

[Calc5]
Measure=Calc
Formula=Calc4
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar7 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar7 BarColor ""][!Redraw]

[Calc4]
Measure=Calc
Formula=Calc3
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar6 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar6 BarColor ""][!Redraw]

[Calc3]
Measure=Calc
Formula=Calc2
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar5 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar5 BarColor ""][!Redraw]

[Calc2]
Measure=Calc
Formula=Calc1
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar4 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar4 BarColor ""][!Redraw]

[Calc1]
Measure=Calc
Formula=Calc0
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar3 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar3 BarColor ""][!Redraw]

[Calc0]
Measure=Calc
Formula=MeasureCPUCore1
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2 BarColor ""][!Redraw]

[MeasureCPUCore2]
Measure=CPU
Processor=2
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-1 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-1 BarColor ""][!Redraw]

[Calc59]
Measure=Calc
Formula=Calc58
MaxValue=100

[Calc58]
Measure=Calc
Formula=Calc57
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-30 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-30 BarColor ""][!Redraw]

[Calc57]
Measure=Calc
Formula=Calc56
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-29 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-29 BarColor ""][!Redraw]

[Calc56]
Measure=Calc
Formula=Calc55
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-28 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-28 BarColor ""][!Redraw]

[Calc55]
Measure=Calc
Formula=Calc54
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-27 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-27 BarColor ""][!Redraw]

[Calc54]
Measure=Calc
Formula=Calc53
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-26 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-26 BarColor ""][!Redraw]

[Calc53]
Measure=Calc
Formula=Calc52
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-25 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-25 BarColor ""][!Redraw]

[Calc52]
Measure=Calc
Formula=Calc51
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-24 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-24 BarColor ""][!Redraw]

[Calc51]
Measure=Calc
Formula=Calc50
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-23 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-23 BarColor ""][!Redraw]

[Calc50]
Measure=Calc
Formula=Calc49
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-22 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-22 BarColor ""][!Redraw]

[Calc49]
Measure=Calc
Formula=Calc48
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-21 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-21 BarColor ""][!Redraw]

[Calc48]
Measure=Calc
Formula=Calc47
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-20 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-20 BarColor ""][!Redraw]

[Calc47]
Measure=Calc
Formula=Calc46
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-19 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-19 BarColor ""][!Redraw]

[Calc46]
Measure=Calc
Formula=Calc45
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-18 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-18 BarColor ""][!Redraw]

[Calc45]
Measure=Calc
Formula=Calc44
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-17 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-17 BarColor ""][!Redraw]

[Calc44]
Measure=Calc
Formula=Calc43
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-16 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-16 BarColor ""][!Redraw]

[Calc43]
Measure=Calc
Formula=Calc42
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-15 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-15 BarColor ""][!Redraw]

[Calc42]
Measure=Calc
Formula=Calc41
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-14 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-14 BarColor ""][!Redraw]

[Calc41]
Measure=Calc
Formula=Calc40
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-13 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-13 BarColor ""][!Redraw]

[Calc40]
Measure=Calc
Formula=Calc39
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-12 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-12 BarColor ""][!Redraw]

[Calc39]
Measure=Calc
Formula=Calc38
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-11 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-11 BarColor ""][!Redraw]

[Calc38]
Measure=Calc
Formula=Calc37
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-10 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-10 BarColor ""][!Redraw]

[Calc37]
Measure=Calc
Formula=Calc36
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-9 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-9 BarColor ""][!Redraw]

[Calc36]
Measure=Calc
Formula=Calc35
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-8 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-8 BarColor ""][!Redraw]

[Calc35]
Measure=Calc
Formula=Calc34
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-7 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-7 BarColor ""][!Redraw]

[Calc34]
Measure=Calc
Formula=Calc33
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-6 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-6 BarColor ""][!Redraw]

[Calc33]
Measure=Calc
Formula=Calc32
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-5 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-5 BarColor ""][!Redraw]

[Calc32]
Measure=Calc
Formula=Calc31
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-4 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-4 BarColor ""][!Redraw]

[Calc31]
Measure=Calc
Formula=Calc30
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-3 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-3 BarColor ""][!Redraw]

[Calc30]
Measure=Calc
Formula=MeasureCPUCore2
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar2-2 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar2-2 BarColor ""][!Redraw]

[MeasureRAM]
Measure=PhysicalMemory

[MeasureFreeRAM]
Measure=PhysicalMemory
InvertMeasure=1

;METERS

[Background]
Meter=IMAGE
ImageName=#Background#
X=0
Y=0
W=145
H=197
ColorMatrix1=1;1;1;0;0
ColorMatrix2=1;1;1;0;0
ColorMatrix3=1;1;1;0;0
ColorMatrix5=-.5;-.5;-.5;0;1
AntiAlias=1

[Icon]
Meter=IMAGE
ImageName=Icon.png
X=120
Y=2
W=20
H=23
AntiAlias=1

[MeterTime]
MeasureName=MeasureTime
Meter=String
X=6
Y=20
StringStyle=Bold
FontColor=#Color#
FontSize=17
FontFace=#FontName#
AntiAlias=1

[MeterUpTime]
MeasureName=MeasureUpTime
Meter=STRING
X=62
Y=42
StringStyle=Bold
FontColor=#Color#
FontSize=8
FontFace=#FontName#
AntiAlias=1

[MeterCPU1Text]
Meter=String
MeasureName=MeasureCPUCore1
Percentual=1
X=75
Y=112
FontFace=#FontName#
FontColor=#Color#
FontSize=8
Postfix="%"
AntiAlias=1

[BarStyle]
BarColor=#LowColor#
BarOrientation=VERTICAL
X=1R
Y=60
H=44
W=2

[Bar1]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc0
X=12
AntiAlias=1

[Bar2]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc1
AntiAlias=1

[Bar3]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc2
AntiAlias=1

[Bar4]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc3
AntiAlias=1

[Bar5]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc4
AntiAlias=1

[Bar6]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc5
AntiAlias=1

[Bar7]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc6
AntiAlias=1

[Bar8]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc7
AntiAlias=1

[Bar9]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc8
AntiAlias=1

[Bar10]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc9
AntiAlias=1

[Bar11]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc10
AntiAlias=1

[Bar12]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc11
AntiAlias=1

[Bar13]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc12
AntiAlias=1

[Bar14]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc13
AntiAlias=1

[Bar15]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc14
AntiAlias=1

[Bar16]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc15
AntiAlias=1

[Bar17]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc16
AntiAlias=1

[Bar18]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc17
AntiAlias=1

[Bar19]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc18
AntiAlias=1

[Bar20]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc19
AntiAlias=1

[Bar21]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc20
AntiAlias=1

[Bar22]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc21
AntiAlias=1

[Bar23]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc22
AntiAlias=1

[Bar24]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc23
AntiAlias=1

[Bar25]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc24
AntiAlias=1

[Bar26]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc25
AntiAlias=1

[Bar27]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc26
AntiAlias=1

[Bar28]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc27
AntiAlias=1

[Bar29]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc28
AntiAlias=1

[Bar30]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc29
AntiAlias=1

;[MeterCPU1Histogram]
;Meter=Histogram
;MeasureName=MeasureCPUCore1
;X=8
;Y=60
;W=101
;H=44
;PrimaryColor=FFFFFF40
;SolidColor=50,50,50,200
;AntiAlias=1

[MeterCPU2Text]
Meter=String
MeasureName=MeasureCPUCore2
Percentual=1
X=75
Y=184
FontFace=#FontName#
FontColor=#Color#
FontSize=8
Text="%1%"
AntiAlias=1

[BarStyle2]
BarColor=#LowColor#
BarOrientation=VERTICAL
X=1R
Y=132
H=44
W=2

[Bar2-1]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc30
X=12
AntiAlias=1

[Bar2-2]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc31
AntiAlias=1

[Bar2-3]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc32
AntiAlias=1

[Bar2-4]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc33
AntiAlias=1

[Bar2-5]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc34
AntiAlias=1

[Bar2-6]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc35
AntiAlias=1

[Bar2-7]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc36
AntiAlias=1

[Bar2-8]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc37
AntiAlias=1

[Bar2-9]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc38
AntiAlias=1

[Bar2-10]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc39
AntiAlias=1

[Bar2-11]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc40
AntiAlias=1

[Bar2-12]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc41
AntiAlias=1

[Bar2-13]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc42
AntiAlias=1

[Bar2-14]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc43
AntiAlias=1

[Bar2-15]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc44
AntiAlias=1

[Bar2-16]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc45
AntiAlias=1

[Bar2-17]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc46
AntiAlias=1

[Bar2-18]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc47
AntiAlias=1

[Bar2-19]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc48
AntiAlias=1

[Bar2-20]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc49
AntiAlias=1

[Bar2-21]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc50
AntiAlias=1

[Bar2-22]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc51
AntiAlias=1

[Bar2-23]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc52
AntiAlias=1

[Bar2-24]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc53
AntiAlias=1

[Bar2-25]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc54
AntiAlias=1

[Bar2-26]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc55
AntiAlias=1

[Bar2-27]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc56
AntiAlias=1

[Bar2-28]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc57
AntiAlias=1

[Bar2-29]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc58
AntiAlias=1

[Bar2-30]
Meter=Bar
MeterStyle=BarStyle2
MeasureName=Calc59
AntiAlias=1

;[MeterCPU2Histogram]
;Meter=Histogram
;MeasureName=MeasureCPUCore2
;X=8
;Y=132
;W=101
;H=44
;PrimaryColor=FFFFFF40
;SolidColor=50,50,50,200
;AntiAlias=1

[MeterRAMText]
Meter=String
MeasureName=MeasureRAM
X=115
Y=183
Scale=1048576
FontFace=#FontName#
FontColor=170,8,8,255
StringStyle=Bold
FontSize=7
Text="%1"
AntiAlias=1

[MeterRAMText2]
Meter=String
MeasureName=MeasureFreeRAM
X=117
Y=55
Scale=1048576
FontFace=#FontName#
FontColor=125,125,125,255
StringStyle=Bold
FontSize=7
Text="%1"
AntiAlias=1

[MeterRAMBar]
MeasureName=MeasureRAM
Meter=BAR
X=120
Y=64
W=18
H=116
BarColor=128,0,0,200
SolidColor=50,50,50,200
BarOrientation=VERTICAL
AntiAlias=1

[Divider]
Meter=Image
ImageName=Divider.png
X=120
y=63
AntiAlias=1
-Brian
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Re: Bar-CPU Meter bug.

Post by Keilvethe »

Thanks for the reply, Brian. Your tip actually worked, and also fixed the bug with the coloration of the bars. However, unpon refresh (a few hours later), this happened:
CPUMeterBugged.png
When reaching halfway through the meter, the "older" bars start appearing on the left side of the skin, instead of continuing forthward to the right. They start superimposing on the "newest" bars, and the whole thing becomes a mess. It only happens with the bars in the meter "Core 1". The "Core 2" meter is doing just fine, just as all other meters.

I can't see anythig wrong with the code, which is basically the one Brian provided (same as the original, just with the "Calc" measures' order reversed), so I was wondering if any of you had any idea about what is going on.

Thank you in advance.
You do not have the required permissions to view the files attached to this post.
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Re: Bar-CPU Meter bug.

Post by Keilvethe »

Well, nevermind, I fixed it. I just copied the original code from a back-up fiel, re-arranged the order of the measures, just like before, and this time it all works just fine. Don't know what went wrong last time, but anyway, thanks a lot for your help, guys!

There's only one little problem left. The bars are programmed so they turn red when their corresponding value is above 80%. And it kinda works, with the only exception that it's the bar before that gets re-coloured red, instead of the current and correct one. Any input as to the origin of this would be appreciated.

And, again, thanks for all your help!