Please help, i try to "pack" bunch system measures into one system skin. But a measure Plugin=Hotkey to detect CAPSLOCK seems break another measure Plugin=UsageMonitor to return NUMBER percentage value (its STRING value is fine).
Is there something i can correct the skin code? Right now i add comment to the CAPSLOCK measure and move it into a separate skin but the position of skins (system & capslock) become not aligned perfectly.
Much appreciate for any help. Thanx
Here is the complete skin:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Metadata]
Name=System
Author=poiru edited by x120e
Information=Displays basic system stats.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0
; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------
[measureCPU]
Measure=CPU
;Processor=0
;If set to 0, measures the average of all CPU cores. If set to a number (1, 2, etc.), measures a specific CPU core.
[measureRAM]
Measure=PhysicalMemory
[measureSWAP]
Measure=SwapMemory
;[measureCAPSLOCK]
;Measure=Plugin
;Plugin=HotKey
;HotKey=CapsLock Status
;KeyDownAction=!UpdateMeasure measureCAPSLOCK
;IfCondition=measureCAPSLOCK = 1
;IfTrueAction=[!SetOption meterValueSystem Text "[\xF05A] CAPS : [\xF2DB] %1% : [\xF0EB] %2% : [\xF0EC] %3% : [\xF11A] %4 [measureTopCPUName:0]%"][!UpdateMeter meterValueSystem][!Redraw]
;IfFalseAction=[!SetOption meterValueSystem Text "[\xF2DB] %1% : [\xF0EB] %2% : [\xF0EC] %3% : [\xF11A] %4 [measureTopCPUName:0]%"][!UpdateMeter meterValueSystem][!Redraw]
[measureTopCPUName]
Measure=Plugin
Plugin=UsageMonitor
Alias=CPU
Index=1
UpdateDivider=5
MinValue=0
MaxValue=100
OnUpdateAction=[!UpdateMeter meterValueSystem][!Redraw]
; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------
[StyleCommon]
StringAlign=Left
StringCase=None
StringStyle=Normal
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontColor=255,255,255,255
FontFace=Segoe Ui
FontSize=8
AntiAlias=1
; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------
[meterValueSystem]
Meter=String
MeterStyle=StyleCommon
MeasureName=measureCPU
MeasureName2=measureRAM
MeasureName3=measureSWAP
MeasureName4=measureTopCPUName
Padding=5,1,5,2
Text=[\xF2DB] %1% : [\xF0EB] %2% : [\xF0EC] %3% : [\xF11A] %4 [measureTopCPUName:0]%
Percentual=1
InLineSetting=Size | 9
InlinePattern=[\xF05A]|[\xF0EB]|[\xF2DB]|[\xF0EC]|[\xF11A]
InLineSetting2=Face | FontAwesome
InlinePattern2=[\xF05A]|[\xF0EB]|[\xF2DB]|[\xF0EC]|[\xF11A]
InLineSetting3=Color | 235,244,104
InlinePattern3=[\xF0EB]
InLineSetting4=Color | 119,231,149
InlinePattern4=[\xF2DB]
InLineSetting5=Color | 107,204,242
InlinePattern5=[\xF0EC]
InLineSetting6=Color | 241,46,46
InlinePattern6=[\xF05A]
InLineSetting7=Color | 236,147,68
InlinePattern7=[\xF11A]
LeftMouseUpAction=["taskmgr.exe"]
ToolTipText=Open Task Manager
SolidColor=10,10,10,210
DynamicVariables=1