This is the code i use:
Code: Select all
[MeasureCPUSpeed]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue=~MHz
UpdateDivider=-1
please help me to fix it
(Sorry, my english isn't good)
Code: Select all
[MeasureCPUSpeed]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue=~MHz
UpdateDivider=-1
Yes, there probably are more possibilities. One works if you're using the CoreTemp application and the related CoreTemp plugin:
Code: Select all
[MeasureCore1Speed]
Measure=Plugin
Plugin=CoreTemp
CoreTempType=CoreSpeed
CoreTempIndex=0
Group=CoreTemp1
RegExpSubstitute=1
Substitute="^(.*)[^k]$":"\1 M","^(.*)k$":"\1 G"
[MeterSpeed]
Meter=STRING
MeasureName=MeasureCore1Speed
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=%1Hz
AutoScale=2
DynamicVariables=1
I am using this skin: https://www.deviantart.com/chroneco/art/Nisekoi-Rainmeter-Skin-437221174balala wrote: ↑August 13th, 2019, 7:11 am Yes, there probably are more possibilities. One works if you're using the CoreTemp application and the related CoreTemp plugin:The [MeasureCore1Speed] measure returns the speed of the first core. You have to add similar measures to each core of your CPU and have to include them into the string meter to show them up as well.Code: Select all
[MeasureCore1Speed] Measure=Plugin Plugin=CoreTemp CoreTempType=CoreSpeed CoreTempIndex=0 Group=CoreTemp1 RegExpSubstitute=1 Substitute="^(.*)[^k]$":"\1 M","^(.*)k$":"\1 G" [MeterSpeed] Meter=STRING MeasureName=MeasureCore1Speed X=0 Y=0 Padding=15,5,15,5 FontColor=220,220,220 FontEffectColor=0,0,0 StringEffect=Shadow SolidColor=0,0,0,150 FontSize=8 FontFace=Segoe UI StringStyle=BOLD StringAlign=LEFT AntiAlias=1 Text=%1Hz AutoScale=2 DynamicVariables=1
Disadvantage: this method works only if CoreTemp is installed and runs in background.
Code: Select all
[Rainmeter]
Update=350
[Variables]
;Bar setting
label = CPU
font_family = Segoe UI
font_size = 20
font_color_label = 255,255,255,255
font_color_text = 20,20,20,255
;Specify thresholds
low = 35
med = 70
high = 100
;Meter variables
size = 200
plate_margin = 60
text_margin_top = 0
text_margin_side = 6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Measures
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;CPU
[CPUState]
Measure=CPU
Processor=0
UpdateDivider=3
[CPUCalc]
Measure = Calc
Formula = round([CPUState],0)
DynamicVariables = 1
;Face
[FrameCalc]
Measure=Calc
Formula=(Counter%2)+1
[HeadCalc]
Measure=Calc
Formula=([CPUCalc]<#high# ? 1:2)
Substitute="1":"head1","2":"head2"
DynamicVariables=1
[FaceCalc]
Measure=Calc
Formula=([CPUCalc]<#low#? 11:([CPUCalc]<#med#? 22:33))
DynamicVariables=1
Substitute="11":"hap[FrameCalc]","22":"neu[FrameCalc]", "33":"ang[FrameCalc]"
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Meters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Character
[MeterHead]
Meter=Image
ImageName=[HeadCalc]
W=#size#
X=5
Y=110
DynamicVariables=1
[MeterFace]
Meter=Image
ImageName=[FaceCalc].png
W=#size#
X=5
Y=110
DynamicVariables=1
;Bar
[MeterPlate]
Meter = Image
ImageName = plate.png
W = #size#
Y = (#size#+#plate_margin#)
[MeterLabel]
Meter = String
Text = #label#
FontFace = #font_family#
FontSize = #font_size#
FontColor = #font_color_label#
StringAlign = Left
AntiAlias = 1
X = #text_margin_side#
Y = (#size# + #text_margin_top# + #plate_margin#)
[MeterState]
Meter = String
Text = [CPUCalc]%
FontFace = #font_family#
FontSize = #font_size#
FontColor = #font_color_text#
StringAlign = Right
AntiAlias = 1
X = (#size# - #text_margin_side#)
Y = (#size# + #text_margin_top# + #plate_margin#)
DynamicVariables=1
Yes, you can, IF you are using the Core Temp program. Are you? Is it installed?swiftord wrote: ↑August 13th, 2019, 7:55 am I am using this skin: https://www.deviantart.com/chroneco/art/Nisekoi-Rainmeter-Skin-437221174
This skin will show my cpu usage, i am trying to rewrite its file to change the CPU usage to the CPU core speed.
Can I use your code in this file?
Ok, let's see if I understood well what would you like. I suppose you'd like to change the CPU loading with the current speed of the CPU, into the Nisekoi\Kirisaki\kirisaki.ini skin. Am I right?
Code: Select all
[MeasureCPUSpeed]
Measure=Plugin
Plugin=CoreTemp
CoreTempType=CpuSpeed
RegExpSubstitute=1
Substitute="^(.*)[^k]$":"\1 M","^(.*)k$":"\1 G"
Code: Select all
[Variables]
...
Speed=1
Code: Select all
[MeasureSpeed]
Measure=Calc
Formula=#Speed#
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!SetOption MeterState Text "%2Hz"][!UpdateMeter "MeterState"][!Redraw]
IfFalseAction=[!SetOption MeterState Text "%1%"][!UpdateMeter "MeterState"][!Redraw]
Hi,balala wrote: ↑August 13th, 2019, 4:13 pmCode: Select all
[MeasureCPUSpeed] Measure=Plugin Plugin=CoreTemp CoreTempType=CpuSpeed RegExpSubstitute=1 Substitute="^(.*)[^k]$":"\1 M","^(.*)k$":"\1 G"
Code: Select all
RegExpSubstitute=1
Substitute="^(.*)[^k]$":"\1 M","^(.*)k$":"\1 G"
To get properly scaled the value returned by the measure. From my previous observations this is the way to get the results according to those shown in the Task Manager. Unfortunately I can't explain why you have to apply it, but this is the only way I got the same results as in Task Manager.
Thanks for the clarification.balala wrote: ↑August 14th, 2019, 11:37 am To get properly scaled the value returned by the measure. From my previous observations this is the way to get the results according to those shown in the Task Manager. Unfortunately I can't explain why you have to apply it, but this is the only way I got the same results as in Task Manager.