It is currently April 28th, 2024, 1:07 pm

Multi-Bar Meter

Get help with creating, editing & fixing problems with skins
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Multi-Bar Meter

Post by Keilvethe »

Hello again. Today, I made a new CPU/RAM/UpTime Meter skin, which uses the Bar Meter. It can be viewed here:
CPUMeter.jpg
However, I was wondering if there was a way to make it look more like this:
BarExample.jpg
The RAM Bar (the vertical one) would work just the same.

However, the CPU Bars (the horizontal ones) would have this slide-from-left-to-right effect, turning red only when the specific value of each individual bar reaches 99-100%.

Is there any way to make it work this way?

Thanks in advance.
You do not have the required permissions to view the files attached to this post.
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: Multi-Bar Meter

Post by Seahorse »

You can use your image for the vertical bar and toggle between the white and red files using either an IfAction or a substitute covered recently here.

I do not know of a way of acheiving the effect you want on the horizontal one if I understand your question correctly.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt

User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Multi-Bar Meter

Post by smurfier »

For the horizontal one you could use a Histogram meter, though you will be unable to get the color changing effect you described.

Edit: Here's another option.

Code: Select all

[Rainmeter]
Author=Smurfier
Update=1000

[Metadata]
Name=
Description=
Instructions=
Version=
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]
High=79
HighColor=255,0,0,255
Low=80
LowColor=100,100,100,255

[Rand]
Measure=Calc
Formula=RANDOM
LowBound=0
HighBound=100
UpdateRandom=1
MaxValue=100
IfAboveValue=#High#
IfAboveAction=!Execute [!SetOption Bar1 BarColor #HighColor#][!Redraw]
IfBelowValue=#Low#
IfBelowAction=!Execute [!SetOption Bar1 BarColor ""][!Redraw]

[Calc0]
Measure=Calc
Formula=Rand
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

[BarStyle]
BarColor=#LowColor#
BarOrientation=VERTICAL
X=1R
H=30
W=3

[Bar1]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc0

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

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

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

[Bar5]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc4
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Re: Multi-Bar Meter

Post by Keilvethe »

Thenks for the tip.
Seahorse wrote:I do not know of a way of acheiving the effect you want on the horizontal one if I understand your question correctly.
Basically, the thing would be an Histogram, only running the other way around (left-to-right, instead of the default right-to-left). Also, I'd like each individual little bar turning from gray to red when reaching a 99-100% value.

EDIT: smurfier beat me to it. Thanks for the info. Regardless of color change, is there any way to flip the histogram horizontally?
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Multi-Bar Meter

Post by smurfier »

First, view my post above.

Second, that would be the job of a transformation matrix.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Re: Multi-Bar Meter

Post by Keilvethe »

@smurfier: Your examlpe code works perfectly.

However, I'm somewhat confused by the size of it, so, how do I bound all that to the CPU Meter? Thanks.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Multi-Bar Meter

Post by smurfier »

Code: Select all

[Rainmeter]
Author=Smurfier
Update=1000

[Metadata]
Name=
Description=
Instructions=
Version=
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]
High=79
HighColor=255,0,0,255
Low=80
LowColor=100,100,100,255

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

[Calc0]
Measure=Calc
Formula=CPU
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

[BarStyle]
BarColor=#LowColor#
BarOrientation=VERTICAL
X=1R
H=30
W=3

[Bar1]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc0

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

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

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

[Bar5]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc4
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Re: Multi-Bar Meter

Post by Keilvethe »

Thanks a lot. I'll come back later to share the results.
zhemis
Posts: 10
Joined: October 11th, 2011, 11:33 pm

Re: Multi-Bar Meter

Post by zhemis »

This is how I did mine. (you can see the results here http://www.youtube.com/watch?v=B3u0MpN3-HE&list=UU7GX02hYa11NVkSE6VBvx6A&index=3&feature=plcp if you want)

Code: Select all

[NetBase]
Meter=IMAGE
ImageName=#NBASE#
X=0
Y=10

;NVIDIA nForce 10/100/1000 Mbps Ethernet

[MeasureNetIn]
Measure=Plugin
Plugin=PerfMon.dll
PerfMonObject="Network Interface"
PerfMonCounter="Bytes Received/sec"
PerfMonInstance=NVIDIA nForce 10_100_1000 Mbps Ethernet
MinValue=0
MaxValue=#NIMaxValue#
UpdateDivider=2

[MeasureNetIn]
Measure=NetIn
Cumulative=1
MinValue=0
MaxValue=#NIMaxValue#
UpdateDivider=2

[MeasureNetOut]
Measure=Plugin
Plugin=PerfMon.dll
PerfMonObject="Network Interface"
PerfMonCounter="Bytes Sent/sec"
PerfMonInstance=NVIDIA nForce 10_100_1000 Mbps Ethernet
MinValue=0
MaxValue=#NOMaxValue#
UpdateDivider=2

[TotalDownload]
Measure=NetIn
Cumulative=1

[TotalUpload]
Measure=NetOut
Cumulative=1

[TopBar]
MeasureName=MeasureNetIn
Meter=BAR
X=34
Y=15
W=91
H=2
BarColor=#BARCOLOR1#
SolidColor=1, 1, 1, 1
BarOrientation=HORIZONTAL
UpdateDivider=4
Flip=1

[BottomBar]
MeasureName=MeasureNetIn
Meter=BAR
X=34
Y=18
W=91
H=2
BarColor=#BARCOLOR2#
SolidColor=1, 1, 1, 1
BarOrientation=HORIZONTAL
UpdateDivider=3
Flip=1

[BarOver]
Meter=IMAGE
ImageName=#NCOVER#
X=34
Y=14
Personally this worked great for me. It was really simple to do and I got exactly the look I wanted and I didn't get lost in some of the more in depth stuff of Rainmeter.
My first skin. Using X3: Terran Conflict GUI.

(Credit goes to Egosoft for all the art. The calendar inside the radar was done by poiru and edited to fit inside the image.)
Keilvethe
Posts: 19
Joined: January 8th, 2012, 12:57 am

Re: Multi-Bar Meter

Post by Keilvethe »

Hello again. I tried using the last given code, replacing the CPU Measure with the CPU Core 1 measure, and adding 25 more bars. Alone, it worked perfectly, but when trying to add it to the skin, it only shows one single bar, which updates every 30 seconds.

Here's the meter alone .ini file:

Code: Select all

[Rainmeter]
Author=Smurfier
Update=1000

[Metadata]
Name=
Description=
Instructions=
Version=
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

[Variables]
High=79
HighColor=255,0,0,255
Low=80
LowColor=100,100,100,255

[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

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

[Bar1]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[Bar30]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc29
And here's the skin's .ini file:

Code: Select all

[Rainmeter]
Author=Keilvethe
AppVersion=1
BackgroundMode=0
MouseActionCursor=0
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=79
HighColor=255,0,0,255
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
MinValue=0
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

[MeterTime]
MeasureName=MeasureTime
Meter=String
X=14
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=12
Y=60
H=44
W=2

[Bar1]
Meter=Bar
MeterStyle=BarStyle
MeasureName=Calc0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

;[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

[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=800000
SolidColor=50,50,50,200
BarOrientation=VERTICAL
AntiAlias=1
What did I do wrong, this time? Thanks