Fabad said:
Open Hardware Monitor with Plugin it is possible to do this way.
....
I try to run the code on the forum thread Rainmeter but without success.
I started my skin with hwinfo because I already use for the OSD ingame.
I do not want to use several software for information about my skin.
Understood, and I'll consider adding it later. The workaround listed to get around the min=0 issue in that post I linked is a bit ugly.
Anyways, it does work fine. So you can do it for now. Edit the skin provided in the installer to do the following:
1 - Add the 'm' variable to the [variables] section which is needed for the min=0 workaround. So after line 19, add:
2 - Delete everything after line 309 which reads '; Table Headers' and replace it with the following:
Code:
[MeterHWiNFOCPU0HeaderMin]
Meter=String
X=#Column1#
Y=5R
Text="MIN"
MeterStyle=HWiNFOTableHeaderStyle
[MeterHWiNFOCPU0HeaderCurrent]
Meter=String
X=#Column2#
Y=0r
Text="CUR"
MeterStyle=HWiNFOTableHeaderStyle
[MeterHWiNFOCPU0HeaderMax]
Meter=String
X=#Column3#
Y=0r
Text="MAX"
MeterStyle=HWiNFOTableHeaderStyle
Code:
; CPU Usage Min/Current/Max
[MeterHWiNFOCoreClockLabel]
Meter=String
X=0
Y=0R
Text="CPU Usage"
MeterStyle=HWiNFOTableHeaderStyle
; Calculate the minimum CPU Usage
[Switch]
Measure=Calc
Formula=0 < HWiNFOCPU0UsageMin ? 1 : 0
IfAboveValue=0
IfAboveAction=!RainmeterSetVariable m <
Code:
[HWiNFOCPU0UsageMin]
Measure=Calc
Formula=HWiNFOCPU0UsageMin #m# HWiNFOCPU0Usage ? HWiNFOCPU0UsageMin : HWiNFOCPU0Usage
DynamicVariables=1
Code:
[MeterHWiNFOCPU0UsageMin]
Meter=String
MeasureName=HWiNFOCPU0UsageMin
X=#Column1#
Y=0r
Text="%1"
NumOfDecimals=2
MeterStyle=HWiNFOTextStyle
Code:
[MeterHWiNFOCPU0UsageCurrent]
Meter=String
MeasureName=HWiNFOCPU0Usage
X=#Column2#
Y=0r
Text="%1"
NumOfDecimals=2
MeterStyle=HWiNFOTextStyle
Code:
; Calculate the maximum CPU Usage
[HWiNFOCPU0UsageMax]
Measure=Calc
Formula=HWiNFOCPU0UsageMax > HWiNFOCPU0Usage ? HWiNFOCPU0UsageMax : HWiNFOCPU0Usage
Code:
[MeterHWiNFOCPU0UsageMax]
Meter=String
MeasureName=HWiNFOCPU0UsageMax
X=#Column3#
Y=0r
Text="%1"
NumOfDecimals=2
MeterStyle=HWiNFOTextStyle
3- Refresh the skin and you'll see the following: