Code: Select all

```
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
; Right click to show sensor index values
ContextTitle=HWiNFO Index Numbers
ContextAction=[!ActivateConfig "HWiNFOcpu\ShowReg" "ShowReg.ini"]
[Metadata]
Name=HWiNFOcpu
Author=JSMorley
Version=March 27, 2021
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Information=Example of using HWiNFO 7.01-xxxx
[Variables]
CPU0ClockSpeedIndex=15
CPU1ClockSpeedIndex=16
CPU2ClockSpeedIndex=17
CPU3ClockSpeedIndex=18
CPU4ClockSpeedIndex=19
CPU5ClockSpeedIndex=20
CPU6ClockSpeedIndex=21
CPU7ClockSpeedIndex=22
CPU0UsageIndex=41
CPU1UsageIndex=43
CPU2UsageIndex=45
CPU3UsageIndex=47
CPU4UsageIndex=49
CPU5UsageIndex=51
CPU6UsageIndex=53
CPU7UsageIndex=55
CPUCoreSensorNameIndex=68
CPUTotalUsageIndex=70
CPUTemperatureIndex=110
; HWiNFO measures
[MeasureCPUName]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=Sensor#CPUCoreSensorNameIndex#
UpdateDivider=-1
RegExpSubstitute=1
Substitute="^.*]: ":""
[MeasureCPUTemp]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPUTemperatureIndex#
MinValue=15
MaxValue=90
; Set the Minimum value if it is smaller than it ever has been. Make it "persistent".
IfCondition=MeasureCPUTemp < MeasureCPUMinTemp
IfTrueAction=[!SetOption MeasureCPUMinTemp Formula "[MeasureCPUTemp]"][!WriteKeyValue MeasureCPUMinTemp Formula "[MeasureCPUTemp]"]
; Set the Maximum value if it is larger than it ever has been. Make it "persistent".
IfCondition2=MeasureCPUTemp > MeasureCPUMaxTemp
IfTrueAction2=[!SetOption MeasureCPUMaxTemp Formula "[MeasureCPUTemp]"][!WriteKeyValue MeasureCPUMaxTemp Formula "[MeasureCPUTemp]"]
[MeasureCPUMinTemp]
Measure=Calc
Formula=90
MinValue=15
MaxValue=90
[MeasureCPUMaxTemp]
Measure=Calc
Formula=15
MinValue=15
MaxValue=90
[MeasureCPU0Clock]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU0ClockSpeedIndex#
MinValue=0
MaxValue=100
[MeasureCPU1Clock]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU1ClockSpeedIndex#
MinValue=0
MaxValue=100
[MeasureCPU2Clock]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU2ClockSpeedIndex#
MinValue=0
MaxValue=100
[MeasureCPU3Clock]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU3ClockSpeedIndex#
MinValue=0
MaxValue=100
[MeasureCPU4Clock]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU4ClockSpeedIndex#
MinValue=0
MaxValue=100
[MeasureCPU5Clock]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU5ClockSpeedIndex#
MinValue=0
MaxValue=100
[MeasureCPU6Clock]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU6ClockSpeedIndex#
MinValue=0
MaxValue=100
[MeasureCPU7Clock]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU7ClockSpeedIndex#
MinValue=0
MaxValue=100
[MeasureCPU0Usage]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU0UsageIndex#
MinValue=0
MaxValue=100
[MeasureCPU1Usage]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU1UsageIndex#
MinValue=0
MaxValue=100
[MeasureCPU2Usage]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU2UsageIndex#
MinValue=0
MaxValue=100
[MeasureCPU3Usage]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU3UsageIndex#
MinValue=0
MaxValue=100
[MeasureCPU4Usage]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU4UsageIndex#
MinValue=0
MaxValue=100
[MeasureCPU5Usage]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU5UsageIndex#
MinValue=0
MaxValue=100
[MeasureCPU6Usage]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU6UsageIndex#
MinValue=0
MaxValue=100
[MeasureCPU7Usage]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPU7UsageIndex#
MinValue=0
MaxValue=100
[MeasureCPUTotalUsage]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SOFTWARE\HWiNFO64\VSB
RegValue=ValueRaw#CPUTotalUsageIndex#
MinValue=0
MaxValue=100
; Meters
[MeterBack]
Meter=Image
W=310
H=291
SolidColor=47,47,47,190
[MeterCPUName]
Meter=String
MeasureName=MeasureCPUName
X=10
Y=5
W=230
ClipString=1
FontSize=11
FontColor=255,255,255,255
StringStyle=Bold
AntiAlias=1
DynamicVariables=1
ToolTipText=[MeasureCPUName]
[MeterCPUTotalUsage]
Meter=String
X=300
Y=r
FontSize=11
FontColor=255,255,255,255
StringStyle=Bold
StringAlign=Right
AntiAlias=1
DynamicVariables=1
Text=[MeasureCPUTotalUsage:1] %
[MeterCPUTempBar]
Meter=Bar
MeasureName=MeasureCPUTemp
X=5
Y=5R
W=300
H=26
BarImage=#@#Images\300x28Bar.jpg
BarOrientation=Horizontal
SolidColor=47,47,47,255
[MeterTempLabel]
Meter=String
X=10
Y=6r
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1
InlineSetting=Color | 85,184,232,255
InlinePattern=▼
InlineSetting2=Color | 255,53,59,255
InlinePattern2=▲
Text=▼ [MeasureCPUMinTemp:0]° ▲ [MeasureCPUMaxTemp:0]°
[MeterCPUTempString]
Meter=String
X=300
Y=0r
FontSize=11
FontColor=255,255,255,255
StringAlign=Right
AntiAlias=1
DynamicVariables=1
Text=[MeasureCPUTemp:0]° C
[MeterCPU0UsageBar]
Meter=Bar
MeasureName=MeasureCPU0Usage
X=5
Y=7R
BarImage=#@#Images\300x28Bar.jpg
BarOrientation=Horizontal
SolidColor=47,47,47,255
[MeterCPU0ClockString]
Meter=String
X=10
Y=6r
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
Text=Core 0: [MeasureCPU0Clock:1] MHz
DynamicVariables=1
[MeterCPU0UsageString]
Meter=String
MeasureName=MeasureCPU0Usage
X=300
Y=0r
FontSize=11
FontColor=255,255,255,255
StringAlign=Right
NumOfDecimals=1
AntiAlias=1
Text=%1 %
[MeterCPU1UsageBar]
Meter=Bar
MeasureName=MeasureCPU1Usage
X=5
Y=7R
BarImage=#@#Images\300x28Bar.jpg
BarOrientation=Horizontal
SolidColor=47,47,47,255
[MeterCPU1ClockString]
Meter=String
X=10
Y=6r
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
Text=Core 1: [MeasureCPU1Clock:1] MHz
DynamicVariables=1
[MeterCPU1UsageString]
Meter=String
MeasureName=MeasureCPU1Usage
X=300
Y=0r
FontSize=11
FontColor=255,255,255,255
StringAlign=Right
NumOfDecimals=1
AntiAlias=1
Text=%1 %
[MeterCPU2UsageBar]
Meter=Bar
MeasureName=MeasureCPU2Usage
X=5
Y=7R
BarImage=#@#Images\300x28Bar.jpg
BarOrientation=Horizontal
SolidColor=47,47,47,255
[MeterCPU2ClockString]
Meter=String
X=10
Y=6r
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
Text=Core 2: [MeasureCPU2Clock:1] MHz
DynamicVariables=1
[MeterCPU2UsageString]
Meter=String
MeasureName=MeasureCPU2Usage
X=300
Y=0r
FontSize=11
FontColor=255,255,255,255
StringAlign=Right
NumOfDecimals=1
AntiAlias=1
Text=%1 %
[MeterCPU3UsageBar]
Meter=Bar
MeasureName=MeasureCPU3Usage
X=5
Y=7R
BarImage=#@#Images\300x28Bar.jpg
BarOrientation=Horizontal
SolidColor=47,47,47,255
[MeterCPU3ClockString]
Meter=String
X=10
Y=6r
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
Text=Core 3: [MeasureCPU3Clock:1] MHz
DynamicVariables=1
[MeterCPU3UsageString]
Meter=String
MeasureName=MeasureCPU3Usage
X=300
Y=0r
FontSize=11
FontColor=255,255,255,255
StringAlign=Right
NumOfDecimals=1
AntiAlias=1
Text=%1 %
[MeterCPU4UsageBar]
Meter=Bar
MeasureName=MeasureCPU4Usage
X=5
Y=7R
BarImage=#@#Images\300x28Bar.jpg
BarOrientation=Horizontal
SolidColor=47,47,47,255
[MeterCPU4ClockString]
Meter=String
X=10
Y=6r
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
Text=Core 4: [MeasureCPU4Clock:1] MHz
DynamicVariables=1
[MeterCPU4UsageString]
Meter=String
MeasureName=MeasureCPU4Usage
X=300
Y=0r
FontSize=11
FontColor=255,255,255,255
StringAlign=Right
NumOfDecimals=1
AntiAlias=1
Text=%1 %
[MeterCPU5UsageBar]
Meter=Bar
MeasureName=MeasureCPU5Usage
X=5
Y=7R
BarImage=#@#Images\300x28Bar.jpg
BarOrientation=Horizontal
SolidColor=47,47,47,255
[MeterCPU5ClockString]
Meter=String
X=10
Y=6r
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
Text=Core 5: [MeasureCPU5Clock:1] MHz
DynamicVariables=1
[MeterCPU5UsageString]
Meter=String
MeasureName=MeasureCPU5Usage
X=300
Y=0r
FontSize=11
FontColor=255,255,255,255
StringAlign=Right
NumOfDecimals=1
AntiAlias=1
Text=%1 %
[MeterCPU6UsageBar]
Meter=Bar
MeasureName=MeasureCPU6Usage
X=5
Y=7R
BarImage=#@#Images\300x28Bar.jpg
BarOrientation=Horizontal
SolidColor=47,47,47,255
[MeterCPU6ClockString]
Meter=String
X=10
Y=6r
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
Text=Core 6: [MeasureCPU6Clock:1] MHz
DynamicVariables=1
[MeterCPU6UsageString]
Meter=String
MeasureName=MeasureCPU6Usage
X=300
Y=0r
FontSize=11
FontColor=255,255,255,255
StringAlign=Right
NumOfDecimals=1
AntiAlias=1
Text=%1 %
[MeterCPU7UsageBar]
Meter=Bar
MeasureName=MeasureCPU7Usage
X=5
Y=7R
BarImage=#@#Images\300x28Bar.jpg
BarOrientation=Horizontal
SolidColor=47,47,47,255
[MeterCPU7ClockString]
Meter=String
X=10
Y=6r
FontSize=11
FontColor=255,255,255,255
AntiAlias=1
Text=Core 7: [MeasureCPU7Clock:1] MHz
DynamicVariables=1
[MeterCPU7UsageString]
Meter=String
MeasureName=MeasureCPU7Usage
X=300
Y=0r
FontSize=11
FontColor=255,255,255,255
StringAlign=Right
NumOfDecimals=1
AntiAlias=1
Text=%1 %
```