Code: Select all
[MeasurePowerScheme]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=SYSTEM\ControlSet001\Control\Power\User\PowerSchemes
RegValue=ActivePowerScheme
Substitute="381b4222-f694-41f0-9685-ff5bb260df2e":"2","8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c":"3","a1841308-3541-4fab-bc81-f71556f20b4a":"1"
; Could substitute above with name of image file and just have one meter
; But I want the icon to be a button that cycles through the schemes, and buttons don't
; have a measure. So I need to control showing/hiding different meters manually
[MeasurePowerSchemeCalc]
Measure=Calc
Formula=MeasurePowerScheme
[MeterPS]
MeasureName=MeasurePowerScheme
Meter=STRING
X=25
Y=0
FontFace=#TextFont#
FontSize=10
FontColor=#TextColor#
[MeterPS2]
MeasureName=MeasurePowerSchemeCalc
Meter=STRING
X=50
Y=0
FontFace=#TextFont#
FontSize=10
FontColor=#TextColor#
I suspect it is because MeasurePowerScheme is a string datatype, and therefore cannot be treated as a numeric value. Perhaps this is more of a feature request, but I would like the substitute capability to include substituting with numeric values.
This may seem like a weird example, but that is because I have simplified it. What I am really trying to do is use a more complex MeasurePowerSchemeCalc that uses IfEqual IfAbove and IfBelow statements to show/hide buttons that cycle through the power schemes. I can't just use the substitute to choose a file name like the weather skin because I need it to have different mouse button behavior depending on which scheme it is (I want the button to cycle through the schemes).
If this is not fixed, I can side-step the problem by creating an additional "pop-up" config to select the power scheme, but I would really prefer to just make the image that indicates the scheme also be a button to cycle through them.
Thanks...