Problem is that the output comes in a few lines and I want to create a single text line that will go into a meter that will display Manufacturer - Capacity - Bank label - Speed.
Should I build the string in lua or could it all be done through substitute on regex?
Should I have a separate measure for each field or could I do it all in one?
Code: Select all
[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,100
OnRefreshAction=[!CommandMeasure GetRamManufacturer "Run"][!CommandMeasure GetRamBankLabel "Run"]
[GetRamManufacturer]
Measure=Plugin
Plugin=RunCommand
Parameter=wmic MemoryChip get BankLabel, Capacity, Manufacturer, Speed
OutputFile=#CURRENTPATH#RamManufacturer.txt
OutputType=ANSI
FinishAction=[!UpdateMeter RamManufacturer][!Redraw]
DynamicVariables=1
RegExpSubstitute=1
Substitute="BankLabel.*#CRLF#":"", "#CRLF#":"", "Manufacturer (\s)":""
;"(\s)":""
[GetRamBankLabel]
Measure=Plugin
Plugin=RunCommand
Parameter=wmic MemoryChip get BankLabel
OutputFile=#CURRENTPATH#RamBankLabel.txt
OutputType=ANSI
FinishAction=[!UpdateMeter RamBankLabel][!Redraw]
DynamicVariables=1
RegExpSubstitute=1
Substitute="BankLabel.*#CRLF#":"","#CRLF#":""
[RamManufacturer]
Meter=String
MeasureName=GetRamManufacturer
FontSize=11
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
X=10
Y=0
[RamBankLabel]
Meter=String
MeasureName=GetRamBankLabel
FontSize=11
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
X=10
Y=20