It is currently May 2nd, 2024, 10:15 pm
Get help with creating, editing & fixing problems with skins
Aelyse
Posts: 2 Joined: October 24th, 2017, 3:20 am
Post
by Aelyse » October 24th, 2017, 3:31 am
Hello, I'm new to this and can't figure out how to make it right. I want the number value on the hp bar to be subtracted from 100 to make it match the denominator. Sorry for my English.
help.PNG
Code: Select all
[Rainmeter]
Update=1000
Author=Serrio Majere
[Variables]
Color1=112,248,168
Color2=60,60,60
[MeterCPU001]
Meter=Image
ImageName=CPU01.png
[MeasureCPU]
Measure= Plugin
Plugin= Perfmon.dll
PerfMonObject="Processor"
PerfMonInstance=0
PerfMonCounter="% Processor Time"
PerfMonDifference=1
InvertMeasure=1
[MeterCPUGraph]
Percentual=1
Meter=Bar
MeasureName=MeasureCPU
X=190
Y=16
W=96
H=6
SolidColor=#Color1#
BarColor=#Color2#
BarOrientation=HORIZONTAL
Flip=1
[MeterCPUHPString]
Meter=String
Measurename=MeasureCPU
Meter=STRING
X=224
Y=25
FontColor=248,248,248,255
FontFace="Power Green Small"
FontSize=12
StringEffect=Shadow
FontEffectColor=112,112,112,255
AntiAlias=1
Percentual=1
NumOfDecimals=0
Scale=10000.0
MaxValue=1.0
Align=Right
[MeterHPTotal]
Meter=String
Text=/ 100
X=246
Y=25
FontColor=248,248,248,255
FontFace="Power Green Small"
FontSize=12
StringEffect=Shadow
FontEffectColor=112,112,112,255
AntiAlias=1
You do not have the required permissions to view the files attached to this post.
Last edited by fonpaolo on October 24th, 2017, 7:57 am, edited 1 time in total.
Reason: Please use the [Code] tags to display your code, not [Quote]
eclectic-tech
Rainmeter Sage
Posts: 5407 Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Post
by eclectic-tech » October 24th, 2017, 4:27 am
If you want the bar to show cpu usage in green, and move from the left to right, change your bar meter to this:
Code: Select all
[MeterCPUGraph]
Percentual=1
Meter=Bar
MeasureName=MeasureCPU
X=190
Y=16
W=96
H=6
SolidColor=#Color2#
BarColor=#Color1#
BarOrientation=HORIZONTAL
;Flip=1
I reversed the color assignment and removed the flip... hope this is what you were wanting.
Aelyse
Posts: 2 Joined: October 24th, 2017, 3:20 am
Post
by Aelyse » October 24th, 2017, 4:34 am
No I wanted the number / 100 to match with green bar. It displays 16/100 but that is not correct. It should be 84/100. Thank you for answering
balala
Rainmeter Sage
Posts: 16195 Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania
Post
by balala » October 24th, 2017, 7:30 am
Aelyse wrote: No I wanted the number / 100 to match with green bar. It displays 16/100 but that is not correct. It should be 84/100. Thank you for answering
Add the following Calc measure:
Code: Select all
[MeasureCPUSub]
Measure=Calc
Formula=( 1 - MeasureCPU )
then replace the name of the measure into the MeasureName option of the [MeterCPUHPString] meter accordingly:
Measurename=MeasureCPUSub .
Just a side note:
Percentual=1 is an option of the String meters, it can't be used on a Bar meter, as you've added it to the [MeterCPUGraph] meter.