It is currently April 27th, 2024, 7:45 pm
S Shaped Bar for Ram
-
- Posts: 27
- Joined: November 23rd, 2011, 4:18 pm
- Location: Boaz, Al
S Shaped Bar for Ram
In a earlier post i asked about a s shaped cpu bar. I was wondering how to "split" the ram reeading so that 1%-50% is shown on the first roundline and 50%-100% is shown and the second round line.
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: S Shaped Bar for Ram
With the use of MinValue and MaxValue.
Code: Select all
[MeasureRam]
*Insert Appropriate Code Here*
[Ram1]
Measure=Calc
Formula=MeasureRam
MaxValue=50
[Ram2]
Measure=Calc
Formula=MeasureRam
MinValue=50
MaxValue=100
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 . . .
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 . . .
-
- Posts: 27
- Joined: November 23rd, 2011, 4:18 pm
- Location: Boaz, Al
Re: S Shaped Bar for Ram
What am i doing wrong.
Code: Select all
[Background]
Meter=IMAGE
X=0
Y=0
ImageName=bg.png
[Style]
FontSize=10
StringStyle=Normal
StringAlign=right
FontFace=Segoe UI
FontColor=255,255,255
AntiAlias=1
[Style2]
FontSize=10
StringStyle=Normal
StringAlign=right
FontFace=Segoe UI
FontColor=255,205,0
AntiAlias=1
[MeasureRam]
Measure=PhysicalMemory
[MeasureRam2]
Measure=PhysicalMemory
InvertMeasure=1
[Ram]
Measure=Calc
Formula=MeasureRam
MaxValue=50
[Ram2]
Measure=Calc
Formula=MeasureRam
MinValue=50
MaxValue=100
[Round1]
Meter=Roundline
MeasureName=Ram
LineColor=255,255,255,255
StartAngle=-1.570796326795
RotationAngle=-3.14159265359
Solid=1
AntiAlias=1
LineLength=20
LineStart=15
H=40
W=40
[Round2]
Meter=Roundline
MeterStyle=Round1
MeasureName=Ram2
RotationAngle=3.14159265359
Y=-5R
[MeterRAM]
Meter=string
MeterStyle=Style
StringAlign=center
FontSize=10
X=30
Y=6
Text="Ram"
[RAMtotalText]
MeasureName=MeasureRam
Meter=STRING
MeterStyle=Style
FontSize=10
X=70
Y=20
Text="%1"
AutoScale=1
NumOfDecimals=0
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: S Shaped Bar for Ram
Sorry, forgot one little detail. The PhysicalMemory Measure is not percentual so we have to make it so.
This is using the original example code I made.
This is using the original example code I made.
Code: Select all
[Rainmeter]
Author=Smurfier
Update=1000
[Metadata]
Name=
Description=
Instructions=
Version=
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
[msRam]
Measure=PhysicalMemory
[msTotalRam]
Measure=PhysicalMemory
Total=1
[Calc1]
Measure=Calc
Formula=msRam/msTotalRam
MaxValue=0.5
[Calc2]
Measure=Calc
Formula=msRam/msTotalRam
MinValue=0.5
[Round1]
Meter=Roundline
MeasureName=Calc1
LineColor=255,255,255,255
StartAngle=-1.570796326795
RotationAngle=-3.14159265359
Solid=1
AntiAlias=1
LineLength=20
LineStart=15
H=40
W=40
[Round2]
Meter=Roundline
MeterStyle=Round1
MeasureName=Calc2
RotationAngle=3.14159265359
Y=-5R
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 . . .
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 . . .
-
- Posts: 1173
- Joined: January 22nd, 2011, 4:23 pm
- Location: GMT +8
Re: S Shaped Bar for Ram
In addition to the above, I think that [MeasureRam2] needs to have Total=1 so that it returns the total RAM rather than InvertMeasure=1 which returns the unused RAM. You can then use [MeasureRam2] in the [RAMtotalText] meter to show the Total RAM - if that is what you wanted to show.
Code: Select all
[MeasureRam2]
Measure=PhysicalMemory
Total=1
;InvertMeasure=1
[RAMtotalText]
MeasureName=MeasureRam2
Meter=STRING
MeterStyle=Style
FontSize=10
X=70
Y=20
Text=%1B
AutoScale=1
NumOfDecimals=1
-
- Posts: 27
- Joined: November 23rd, 2011, 4:18 pm
- Location: Boaz, Al
Re: S Shaped Bar for Ram
I beleive this is it, i had to chaged the the max and add min. but i think it should work now. thank you smurfier and Mordasius.
Code: Select all
[Background]
Meter=IMAGE
X=0
Y=0
ImageName=bg.png
[Style]
FontSize=10
StringStyle=Normal
StringAlign=right
FontFace=Segoe UI
FontColor=255,255,255
AntiAlias=1
[Style2]
FontSize=10
StringStyle=Normal
StringAlign=right
FontFace=Segoe UI
FontColor=255,205,0
AntiAlias=1
[MeasureRam]
Measure=PhysicalMemory
[MeasureTotalRam]
Measure=PhysicalMemory
Total=1
[Ram]
Measure=Calc
Formula=MeasureRam/MeasureTotalRam
MaxValue=0.5
[Ram2]
Measure=Calc
Formula=MeasureRam/MeasureTotalRam
MinValue=0.5
MaxValue=1
[Round1]
Meter=Roundline
MeasureName=Ram
LineColor=255,255,255,255
StartAngle=-1.570796326795
RotationAngle=-3.14159265359
Solid=1
AntiAlias=1
LineLength=20
LineStart=15
H=40
W=40
[Round2]
Meter=Roundline
MeterStyle=Round1
MeasureName=Ram2
RotationAngle=3.14159265359
Y=-5R
[MeterRam]
Meter=string
MeterStyle=Style
StringAlign=center
FontSize=10
X=30
Y=6
Text="Ram"
[RAMtotalText]
MeasureName=MeasureRam
Meter=STRING
MeterStyle=Style
FontSize=10
X=70
Y=20
Text="%1"
AutoScale=1
NumOfDecimals=0