It is currently December 9th, 2021, 3:59 am

Roundline, ToolTip; No?

Help with creating, editing & fixing problems with skins
User avatar
David8192
Posts: 152
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Roundline, ToolTip; No?

Post by David8192 »

balala wrote: November 17th, 2021, 3:11 pm I see. Add the following measure to your code:

Code: Select all

[mTotalCPU]
Measure=Calc
Formula=1
UpdateDivider=-1
Also add, between the [mswap] and [rcpu] meters (is important their order) the following meter:

Code: Select all

[cput]
Meter=ROUNDLINE
measurename=mTotalCPU
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=10
linelength=15
linecolor=0,0,255
solid=1
;ToolTipTitle=C p u
;ToolTipIcon=info
;ToolTipText=%1%
;ToolTipType=1
UpdateDivider=-1
Note that here I removed (in fact commented out) the Tooltip related options, doesn't worth to have the same Tooltip on both, the [cput] and the [rcpu] meters as well. The same applies for the [mrat] and [mra], respectively the [mswapt] and [mswap] meter pairs, which also should have to have removed the duplicated Tooltips.
Also removed the quotes around the TooltipTitle and TooltipText options, which are simply ignored by Rainmeter, so they are useless.
Yay! That came out fine!
nice.JPG
I think sl23 did it instead of you.
Yeah, he beat me to it.
You do not have the required permissions to view the files attached to this post.
For some Reason, the square root of X2 does not involve X

the DA GALLERY 8-)
User avatar
David8192
Posts: 152
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Roundline, ToolTip; No?

Post by David8192 »

Thank you balala!
For some Reason, the square root of X2 does not involve X

the DA GALLERY 8-)
User avatar
balala
Rainmeter Sage
Posts: 13533
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Roundline, ToolTip; No?

Post by balala »

David8192 wrote: November 17th, 2021, 7:01 pm Thank you balala!
You're welcome, if I did help.
But post please once again the last code.
User avatar
David8192
Posts: 152
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Roundline, ToolTip; No?

Post by David8192 »

balala wrote: November 17th, 2021, 7:34 pm You're welcome, if I did help.
But post please once again the last code.
Here it is.

Code: Select all

[Rainmeter]
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,10,100

[mTotalCPU]
Measure=Calc
Formula=1
UpdateDivider=-1
[mcpu]
Measure=cpu
[mcput]
Measure=cpu
Total=1
[mRamTotal]
Measure=PhysicalMemory
Total=1
[mRamUsed]
Measure=PhysicalMemory
AverageSize=1
UpdateDivider=1

[mSwapTotal]
Measure=SwapMemory
Total=1
UpdateDivider=5
[mSwapUsed]
Measure=SwapMemory
UpdateDivider=5
[mSwapFree]
Measure=SwapMemory
InvertMeasure=1


[concpu]
meter=shape
shape=rectangle 20,20,40,40,50 | fill lineargradient rgrad | strokecolor 255,255,255
rgrad= 315 | 255,0,0 ; 0.2 | 0,255,0 ; 1.0
UpdateDivider=-1
container=rcpu

[conswap]
meter=shape
shape=rectangle 10,10,60,60,50 | fill lineargradient rgrad | strokecolor 255,255,255
rgrad= 315 | 255,0,0 ; 0.2 | 0,255,0 ; 1.0
UpdateDivider=-1
container=mswap

[conram]
meter=shape
shape=rectangle 0,0,80,80,50 | fill lineargradient rgrad | strokecolor 255,255,255
rgrad= 315 | 255,0,0 ; 0.2 | 0,255,0 ; 1.0
UpdateDivider=-1
container=mra

[mrat]
Meter=ROUNDLINE
measurename=mRamTotal
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=30
linelength=35
linecolor=0,0,255
antialias=1
solid=1
UpdateDivider=-1

[mra]
Meter=ROUNDLINE
measurename=mRamUsed
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=30
linelength=35
linecolor=255,0,0
antialias=1
solid=1
ToolTipTitle=R a m
ToolTipIcon=info
ToolTipText="%1b"
ToolTipType=1

[mswapt]
Meter=ROUNDLINE
measurename=mSwapTotal
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=20
linelength=25
linecolor=0,0,255
antialias=1
solid=1
UpdateDivider=-1

[mswap]
Meter=ROUNDLINE
measurename=mSwapUsed
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=20
linelength=25
linecolor=255,0,0
antialias=1
solid=1
ToolTipTitle=S w a p
ToolTipIcon=info
ToolTipText="%1b"
ToolTipType=1

[cput]
Meter=ROUNDLINE
measurename=mTotalCPU
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=10
linelength=15
linecolor=0,0,255
antialias=1
solid=1
UpdateDivider=-1

[rcpu]
meter=roundline
measurename=mcpu
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=10
linelength=15
linecolor=255,0,0
antialias=1
solid=1
ToolTipTitle=C p u
ToolTipIcon=info
ToolTipText="%1%"
ToolTipType=1
For some Reason, the square root of X2 does not involve X

the DA GALLERY 8-)
User avatar
David8192
Posts: 152
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Roundline, ToolTip; No?

Post by David8192 »

There is one other thing I have noticed.
An empty drive is showing a full line instead of an empty one.
What I was hoping for was to see a blue line, but it shows green to red filled up.
The outer line:
ny.JPG
I used the same code for easy reference. I commented the actual ram measures out and used the names for the removable drive.

Code: Select all

[Rainmeter]
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,10,100

[mTotalCPU]
Measure=Calc
Formula=1
UpdateDivider=-1
[mcpu]
Measure=cpu
;[mRamTotal]
;Measure=PhysicalMemory
;Total=1
;[mRamUsed]
;Measure=PhysicalMemory
;AverageSize=1
;UpdateDivider=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[mRamTotal]
Measure=FreeDiskSpace
Drive=H:
Total=1
IgnoreRemovable=0

[mRamUsed]
Measure=FreeDiskSpace
Drive=H:
IgnoreRemovable=0
UpdateDivider=5
InvertMeasure=1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[mSwapTotal]
Measure=SwapMemory
Total=1
UpdateDivider=5
[mSwapUsed]
Measure=SwapMemory
UpdateDivider=5
[mSwapFree]
Measure=SwapMemory
InvertMeasure=1


[concpu]
meter=shape
shape=rectangle 20,20,40,40,50 | fill lineargradient rgrad | strokecolor 255,255,255
rgrad= 315 | 255,0,0 ; 0.2 | 0,255,0 ; 1.0
UpdateDivider=-1
container=rcpu

[conswap]
meter=shape
shape=rectangle 10,10,60,60,50 | fill lineargradient rgrad | strokecolor 255,255,255
rgrad= 315 | 255,0,0 ; 0.2 | 0,255,0 ; 1.0
UpdateDivider=-1
container=mswap

[conram]
meter=shape
shape=rectangle 0,0,80,80,50 | fill lineargradient rgrad | strokecolor 255,255,255
rgrad= 315 | 255,0,0 ; 0.2 | 0,255,0 ; 1.0
UpdateDivider=-1
container=mra

[mrat]
Meter=ROUNDLINE
measurename=mRamTotal
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=30
linelength=35
linecolor=0,0,255
antialias=1
solid=1
UpdateDivider=-1

[mra]
Meter=ROUNDLINE
measurename=mRamUsed
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=30
linelength=35
linecolor=255,0,0
antialias=1
solid=1
ToolTipTitle=R a m
ToolTipIcon=info
ToolTipText="%1b"
ToolTipType=1

[mswapt]
Meter=ROUNDLINE
measurename=mSwapTotal
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=20
linelength=25
linecolor=0,0,255
antialias=1
solid=1
UpdateDivider=-1

[mswap]
Meter=ROUNDLINE
measurename=mSwapUsed
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=20
linelength=25
linecolor=255,0,0
antialias=1
solid=1
ToolTipTitle=S w a p
ToolTipIcon=info
ToolTipText="%1b"
ToolTipType=1

[cput]
Meter=ROUNDLINE
measurename=mTotalCPU
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=10
linelength=15
linecolor=0,0,255
antialias=1
solid=1
UpdateDivider=-1

[rcpu]
meter=roundline
measurename=mcpu
h=80
w=80
startangle=(rad(90))
rotationangle=(rad(270))
linestart=10
linelength=15
linecolor=255,0,0
antialias=1
solid=1
ToolTipTitle=C p u
ToolTipIcon=info
ToolTipText="%1%"
ToolTipType=1
You do not have the required permissions to view the files attached to this post.
For some Reason, the square root of X2 does not involve X

the DA GALLERY 8-)
User avatar
balala
Rainmeter Sage
Posts: 13533
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Roundline, ToolTip; No?

Post by balala »

David8192 wrote: November 17th, 2021, 8:20 pm An empty drive is showing a full line instead of an empty one.
What I was hoping for was to see a blue line, but it shows green to red filled up.
Unfortunately if I'm not mistaken, when showing the content of a removable drive with either a Roundline or Bar meter and the drive is removed, the associated meter shows it as being "full". This is a known behavior of those measures and meters.
Not sure there is a good and easy solution. Maybe someone else has a better idea?
User avatar
David8192
Posts: 152
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Roundline, ToolTip; No?

Post by David8192 »

balala wrote: November 17th, 2021, 9:10 pm Unfortunately if I'm not mistaken, when showing the content of a removable drive with either a Roundline or Bar meter and the drive is removed, the associated meter shows it as being "full". This is a known behavior of those measures and meters.
Not sure there is a good and easy solution. Maybe someone else has a better idea?
Regex maybe?
For some Reason, the square root of X2 does not involve X

the DA GALLERY 8-)
User avatar
balala
Rainmeter Sage
Posts: 13533
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Roundline, ToolTip; No?

Post by balala »

David8192 wrote: November 17th, 2021, 9:43 pm Regex maybe?
:confused:
What's with Regex? Not sure I follow...
User avatar
David8192
Posts: 152
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: Roundline, ToolTip; No?

Post by David8192 »

balala wrote: November 18th, 2021, 5:05 pm :confused:
What's with Regex? Not sure I follow...
I thought of substituting 0 with something like 0.0001 so that the line can look empty or at least almost empty.
For some Reason, the square root of X2 does not involve X

the DA GALLERY 8-)
User avatar
balala
Rainmeter Sage
Posts: 13533
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Roundline, ToolTip; No?

Post by balala »

David8192 wrote: November 18th, 2021, 7:17 pm I thought of substituting 0 with something like 0.0001 so that the line can look empty or at least almost empty.
Unfortunately doesn't work. You can try this out, by adding the following two options to the [mRamUsed] measure, but doesn't work:

Code: Select all

[mRamUsed]
...
RegExpSubstitute=1
Substitute="^0%":"0.0001"
Even if this is completely rough solution, and I definitely doesn't like it, here is a solution which might work. According to it, you have to set the color of the [conram] meter to blue when the removable drive is not present and to the original color when the drive is inserted.
If you want to try this out, please replace the named [conram] meter with the following one:

Code: Select all

[conram]
meter=shape
shape=rectangle 0,0,80,80,50 | Extend Extender1, StrokeExtender
Extender1=fill lineargradient rgrad
Extender2=Fill Color 0,0,255
StrokeExtender=strokecolor 255,255,255
rgrad= 315 | 255,0,0 ; 0.2 | 0,255,0 ; 1.0
UpdateDivider=-1
container=mra
Replace / add the following measures:

Code: Select all

[mRamTotal]
Measure=Calc
Formula=1

[MeasureRamTotal]
Measure=FreeDiskSpace
Drive=J:
Total=1
IgnoreRemovable=0
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetOption conram shape "rectangle 0,0,80,80,50 | Extend Extender2, StrokeExtender"][!UpdateMeter "conram"][!Redraw]
IfFalseAction=[!SetOption conram shape "rectangle 0,0,80,80,50 | Extend Extender1, StrokeExtender"][!UpdateMeter "conram"][!Redraw]

[mRamUsed]
Measure=FreeDiskSpace
Drive=J:
IgnoreRemovable=0
InvertMeasure=1
Does this work alright now?