It is currently April 23rd, 2024, 4:47 pm

ActionTimer - CPUSlide

Skins that don't neatly fit into other categories
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

ActionTimer - CPUSlide

Post by jsmorley »

Just another example of using the new ActionTimer Plugin.
CPUSlide_1.0.rmskin
test1.gif
The ActionTimer plugin is included in the .rmskin.

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
Background=#@#Images\340x100.png
MouseOverAction=[!CommandMeasure MeasureSlideAll "Stop 2"][!CommandMeasure MeasureSlideAll "Execute 1"]
MouseLeaveAction=[!CommandMeasure MeasureSlideAll "Stop 1"][!CommandMeasure MeasureSlideAll "Execute 2"]

[Variables]
W=10
RightMargin=340
U=[!UpdateMeasure MeasureSlideAll][!UpdateMeter *][!Redraw]

[MeasureCPU]
Measure=CPU

[MeasureCPUName]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue=ProcessorNameString
UpdateDivider=-1
RegExpSubstitute=1
Substitute="[ ]*$":""

[MeasureCPUSpeed]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue=~MHz
UpdateDivider=-1

[MeasureNameSpeed]
Measure=String
String=[MeasureCPUName] - [MeasureCPUSpeed] Mhz
DynamicVariables=1
UpdateDivider=-1

[MeasureCPUMax]
Measure=Plugin
Plugin=AdvancedCPU

[MeasureTopProcessName]
Measure=Plugin
Plugin=AdvancedCPU
TopProcess=2
CPUExclude="Idle;dwm;wmpnetwk;csrss;svchost;lsass;System;system"

[MeasureTopProcess%]
Measure=Plugin
Plugin=AdvancedCPU
TopProcess=1
CPUExclude="Idle;dwm;wmpnetwk;csrss;svchost;lsass;System;system"
MaxValue=[MeasureCPUMax]
DynamicVariables=1

[MeasureSlideAll]
Measure=Plugin
Plugin=ActionTimer

ActionList1=SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft|Wait #W#|SlideLeft
SlideLeft=[!SetVariable RightMargin "(Clamp((#RightMargin# - 10),50,340))"]#U#

ActionList2=SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight|Wait #W#|SlideRight
SlideRight=[!SetVariable RightMargin "(Clamp((#RightMargin# + 10),50,340))"]#U#

DynamicVariables=1

[MeterStaticBack]
Meter=Image
X=(#RightMargin# - 50)
W=50
H=100
SolidColor=0,0,0,255
DynamicVariables=1

[MeterSlideBack]
Meter=Image
X=#RightMargin#
W=340
H=100
SolidColor=0,0,0,255
DynamicVariables=1

[MeterCPUBar]
Meter=Bar
MeasureName=MeasureCPU
X=(#RightMargin# - 50)
W=10
H=100
BarColor=189,252,182,255
SolidColor=70,70,70,255
BarOrientation=Vertical
DynamicVariables=1

[MeterLabel]
Meter=String
X=(#RightMargin# - 5)
Y=27
FontFace=Fira Sans
FontSize=20
FontColor=255,255,255,255
Angle=(Rad(90))
AntiAlias=1
Text=CPU
DynamicVariables=1

[MeterPercentLabel]
Meter=String
X=(#RightMargin# + 10)
Y=0
FontFace=Fira Sans Bold
FontSize=65
FontColor=40,40,40,255
AntiAlias=1
Text=%
DynamicVariables=1

[MeterPercent]
Meter=String
MeasureName=MeasureCPU
X=(#RightMargin# + 46)
Y=15
StringAlign=Center
FontFace=Fira Sans
FontSize=45
FontColor=255,255,255,255
AntiAlias=1
Text=%1
DynamicVariables=1

[MeterNameSpeed]
Meter=String
MeasureName=MeasureNameSpeed
X=(#RightMargin# + 100)
Y=10
W=180
H=55
ClipString=2
FontFace=Fira Sans
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1

[MeterTopName]
Meter=String
MeasureName=MeasureTopProcessName
X=(#RightMargin# + 100)
Y=70
FontFace=Fira Sans
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1

[MeterTopPercent]
Meter=String
MeasureName=MeasureTopProcess%
X=(#RightMargin# + 275)
Y=0r
StringAlign=Right
FontFace=Fira Sans
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
Percentual=1
Text=%1%
DynamicVariables=1
You do not have the required permissions to view the files attached to this post.
Bgdrls
Posts: 66
Joined: April 29th, 2011, 1:03 am

ActionTimer - CPUSlide

Post by Bgdrls »

Why is skin CPU (main & top process) quite below Win cpu?

Image
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: ActionTimer - CPUSlide

Post by jsmorley »

Not sure. It isn't for me.

TaskManager:
1.jpg
Process Explorer:
2.jpg
I think "CPU usage" is generally displayed as an average across the number of cores that you have. That is certainly what Rainmeter does, and likely what TaskManager and Process Explorer do. Perhaps in Process Hacker it is a "total" instead of an "average". That would mean on a dual-core system the total percentage would be 200%, which doesn't even make sense to me. It would be difficult to create a skin that was consistent on different CPU types.
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: ActionTimer - CPUSlide

Post by jsmorley »

I had forgotten to include the Fira Sans font in the .rmskin. Fixed in the .rmskin download in the first post...
sesheron
Posts: 11
Joined: May 8th, 2014, 3:04 pm

Re: ActionTimer - CPUSlide

Post by sesheron »

After install, Rainmeter stops responding and right clicking on tray icon does nothing.

Deleting CPUslide from plugin folder and restarting Rainmeter resumes normal operation.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: ActionTimer - CPUSlide

Post by jsmorley »

sesheron wrote:After install, Rainmeter stops responding and right clicking on tray icon does nothing.

Deleting CPUslide from plugin folder and restarting Rainmeter resumes normal operation.
What version of Rainmeter and Windows are you on?
Bgdrls
Posts: 66
Joined: April 29th, 2011, 1:03 am

Re: ActionTimer - CPUSlide

Post by Bgdrls »

Process Explorer by default, gives me exactly the same cpu like Process Hacker do.
But windows task manager gives me the same like a skin?

Anyway, tnx for the explanation.