Well, you have two options. Either you use the RunCommand.dll plugin, or you do it the long way round with a .vbs script and the quote plugin. The RunCommand option seems more... elegant, and has less disk IO.
Code: Select all
[Rainmeter]
Update=1000
[MeasureColorTrigger]
Measure=String
OnUpdateAction=[!CommandMeasure MeasurePaletteRegistry Run]
DynamicVariables=1
UpdateDivider=-1
[MeasurePaletteRegistry]
Measure=Plugin
Plugin=Plugin\RunCommand.dll
Parameter=C:\Windows\System32\reg.exe query HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent /v AccentPalette
OutputType=ANSI
FinishAction=[!UpdateMeasure "MeasureSplitPaletteBG"]
DynamicVariables=1
UpdateDivider=-1
[MeasureSplitPaletteBG]
Measure=String
String=[MeasurePaletteRegistry]
DynamicVariables=1
RegExpSubstitute=1
Substitute="(?siU).*REG_BINARY\s*([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2})([[:xdigit:]]{2}).*":"\21\22\23"
-- Select a palette entry from
-- "\1\2\3\4 \5\6\7\8 \9\10\11\12 \13\14\15\16 \17\18\19\20 \21\22\23\24 \25\26\27\28 \29\30\31\32"
UpdateDivider=-1
To see how you do it the hard way, with a .vbs script, see here: http://rainmeter.net/forum/viewtopic.php?f=99&t=21223
If you have a background changer, using SysColor.dll to trigger the extract is still advised, instead of triggering via rainmeter command line from the changer. That way the extract is done after changes are committed to registry. Seems its too quick otherwise. Like so, then:
Code: Select all
[MeasureColorTrigger]
Measure=Plugin
Plugin=Plugin\SysColor.dll
ColorType=Aero
Hex=1
DisplayType=ALL
OnChangeAction=[!CommandMeasure MeasurePaletteRegistry Run]
DynamicVariables=1
RunCommand plugin: https://github.com/brianferguson/RunCommand.dll
SysColor plugin: https://github.com/brianferguson/SysColor.dll
Dedicated to Brian Ferguson. Making my life better, one plugin at a time.