It is currently June 15th, 2024, 7:47 am

Create bar for calc measure

Get help with creating, editing & fixing problems with skins
Arjun
Posts: 18
Joined: July 17th, 2023, 7:24 am

Create bar for calc measure

Post by Arjun »

I have a Calc measure which derives me a value which is sum of AverageCPU and another Calc Measure divided by 2...but creating a bar out of it doesn't seems to be that easy

Code for creating the BAR:

Code: Select all

[MeterBar]
Measurename=mEASURECalc
Meter=Bar
MeterStyle=BarStyle
X=1
y=10
Code for "another calc measure"

Code: Select all

[MeasureCalcforRAM]
Measure=CALC
Formula=(MeasurePhysMemUsed / MeasurePhysMemTotal) *100
Both the measures work properly independently and the Calc measure is also working fine (as per the skins section in Log)
Last edited by balala on September 9th, 2023, 8:43 pm, edited 1 time in total.
Reason: Please use <code> tags whenever are posting codes. It's the </> button.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5434
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Create bar for calc measure

Post by eclectic-tech »

You didn't include all of the code referenced in your post... add the missing code so we can see what you are attempting to achieve.

However, here are a few thoughts...

Measures used in Bar Meters must return a percentual value. Not all measures return percentual values, so with those measures you must set MinValue & MaxValue on the measure so Rainmeter can determine the percentual value.

Please use the code tag when posting code. It is the </> symbol in the post window.
Arjun
Posts: 18
Joined: July 17th, 2023, 7:24 am

Re: Create bar for calc measure

Post by Arjun »

The idea of Minvalue and Maxvalue worked, Thanks Dude my Calc measure Bar now works properly