CPU-GPU-PWR Skin

[Rainmeter]
Update=1000
MiddleMouseDownAction=[!Refresh]
AccurateText=1
DynamicWindowSize=1

[Metadata]
Name=Rainformer PSU - HWiNFO Edition
Author=Pul53dr1v3r
Information=Shows Power Draw of CPU & GPU
License=None
Version=2.9

[Variables]
@Include=#@#HWiNFO.inc
@IncludeVariables=#@#Variables.inc
@IncludeStyles=#@#Styles.inc
SkinState=0

;[--------------------[[Background]]--------------------]

[MeterBackground]
Meter=Shape
MeterStyle=StyleBackground

;[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\[[MEASURES]]//////////////////////////////]
;[--------------------[[PWRDraw]]--------------------]

[CPUPowerUsage]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-CPU-Power-SensorId#
HWiNFOSensorInstance=#HWiNFO-CPU-Power-SensorInstance#
HWiNFOEntryId=#HWiNFO-CPU-Power-EntryId#
HWiNFOType=CurrentValue
HWiNFOLogHandler=0
OnChangeAction=[!SetOption MeasureMinPowerDraw Formula "(Min(CPUPowerUsage,MeasureMinPowerDraw))"]

[GPUPowerUsage]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=#HWiNFO-GPU-Power-SensorId#
HWiNFOSensorInstance=#HWiNFO-GPU-Power-SensorInstance#
HWiNFOEntryId=#HWiNFO-GPU-Power-EntryId#
HWiNFOType=CurrentValue
HWiNFOLogHandler=0
OnChangeAction=[!SetOption MeasureMinPowerDraw Formula "(Min(GPUPowerUsage,MeasureMinPowerDraw))"]

[CPUGPUPowerCalc]
Measure=Calc
Formula=CPUPowerUsage + GPUPowerUsage * 1

[CPUGPUPowerCalc2]
Measure=Calc
Formula=CPUGPUPowerCalc * 100 / #MaxCPUGPUPower#
MinValue=0
MaxValue=100

;[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\[[METERS]]//////////////////////////////]
;[--------------------[[Title]]--------------------]

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
Text=CPU+GPU Power Usage

;[--------------------[[PSU_Temperature]]--------------------]

[CPUGPUTempText]
Meter=STRING
MeasureName=CPUGPUTemp
MeterStyle=styleFirstLineText | StyleCenterAlign
Text="%1#deg##TempUnitLetter#"
Y=(#TopMarginFormula#-2)
FontColor=[CPUGPUTempWarn]
DynamicVariables=1
Hidden=(#PsuTemp#=1)

;[--------------------[[Power]]--------------------]

[CPUGPUPowerUsageString]
Meter=STRING
MeterStyle=stylePrimaryText | StyleLeftAlign
Text="Power:"
Y=((#PsuPwr#=1) ? #RowSpacing# : 0)R
Hidden=(#PsuPwr#=0)

[CPUGPUPowerText]
Meter=STRING
MeterStyle=stylePrimaryText | StyleCenterAlign_r
MeasureName=CPUGPUPowerCalc
Text="%1W / #MaxCPUGPUPower#W"
FontColor=[CPUGPUTextWarn]
DynamicVariables=1

[CPUGPUPowerUsageBar]
Meter=Bar
MeasureName=PSUPowerCalc2
MeterStyle=StyleBar
Y=((#PsuPwr#=1) ? #RowSpacing# : -1)R
BarColor=[CPUGPUPowerBarWarn]

;[--------------------[[Bg height]]--------------------]

[MeterBackgroundHeight]
Meter=Image
SolidColor=255,255,255,0
X=0
;Y=(#BottomMargin# + #BgOffset# + 1)R
;Y=((0 * (#SkinState#=0)?) + #BottomMargin# + #BgOffset# + #RowSpacing# -2)R
Y=((0 * (#SkinState#=0)?) + #BottomMargin# + #BgOffset# -1)R
W=(#BgWidth# * #scale#)
H=1
TransformationMatrix=#Scale#;0;0;#Scale#;#Scale#;#Scale#