It is currently April 25th, 2024, 8:31 pm

Ram bar?

Get help with creating, editing & fixing problems with skins
User avatar
Alloutofmercy
Posts: 142
Joined: November 17th, 2021, 5:51 am

Ram bar?

Post by Alloutofmercy »

So, I want to create bar that shows sysinfo. I am using

Code: Select all

MeasureRAMUsedPercentDecimal
measure to create the bar but nothing is visible.
It works fine for the CPU with

Code: Select all

MeasureAverageCPU
measure.
Here is the source code:-

Code: Select all

[CPUBar]
Meter=Bar
MeasureName=MeasureAverageCPU
X=80
Y=10
W=200
H=18
BarColor=5ebcff
SolidColor=374d5c
BarOrientation=Horizontal
Container=CPUBarContainer

Code: Select all

[RAMBar]
Meter=Bar
MeasureName=MeasureRAMUsedPercentDecimal
X=80
Y=10
W=200
H=18
BarColor=ba7dff
SolidColor=4e405e
BarOrientation=Horizontal
Container=RAMBarContainer
BOOTY
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Ram bar?

Post by balala »

Alloutofmercy wrote: December 13th, 2021, 2:23 pm So, I want to create bar that shows sysinfo. I am using

Code: Select all

MeasureRAMUsedPercentDecimal
measure to create the bar but nothing is visible.
It works fine for the CPU with

Code: Select all

MeasureAverageCPU
measure.
Sorry, but this is a completely useless information. How does the [MeasureRAMUsedPercentDecimal] measure looks like? Post its code please. Most probably you didn't set it to return a percentual value (by adding proper MinValue and MaxValue options). The [MeasureAverageCPU] measure doesn't require those options to be set, because:
The value of a CPU measure is a percentage from 0 to 100.
However the [MeasureRAMUsedPercentDecimal] measure might require it.
The code of the container meter ([RAMBarContainer]) would also be needed.
So post the whole code first please.