
Having trouble with RainRGB and RunCommand?
I made some discoveries regarding RainRGB and RunCommand after looking through this post and trying to implement it into my skin. So i wanted to share my findings.
Ok let me first explain my skin and what it do.
My skin is a app drawer with 3 drawers.
Each drawer has 20 icons.
Each drawer has 12 themes the user can customize from the settings.
I wanted a way to change the colors of all the icons in one drawer at the time, using RainRGB.
I found that the RainRGB4RunCommand.exe worked for my situation.
So if any of you are in the same boat, maybe you can glean something off of my meters below.
And by the way, !WriteKeyValue works like a charm with a !Refresh at the end.
You don't HAVE to use [!SetVariable CurrentColor "[MeasureRunRainRGB]"][!UpdateMeter *][!Redraw]
Like shown in the example skin.
Code: Select all
[Tray1AllIconsColorR1]
Meter=Image
ImageName=#@#Images\Settings\AllIconsColorButton.png
X=-37r
Y=-9r
W=40
H=40
AntiAlias=1
LeftMouseUpAction=[!CommandMeasure MeasureRunRainRGB "Run"]
[MeasureRunRainRGB]
Measure=Plugin
Plugin=RunCommand
Program=""#@#Addons\RainRGB4RunCommand\RainRGB4RunCommand.exe""
Parameter=""VarName=AllTray1IconsColor" "FileName=#@#Memory\Themes\Tray1\#ThemeTray1#.inc" "RefreshConfig=-1""
OutputType=ANSI
FinishAction=[!UpdateMeasure MeasureSetColor]
[MeasureSetColor]
Measure=String
String=[MeasureRunRainRGB]
UpdateDivider=-1
DynamicVariables=1
IfMatch=^$
IfMatchMode=1
IfNotMatchAction=[!WriteKeyValue Variables Tray1Icon1Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon2Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon3Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon4Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon5Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon6Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon7Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon8Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon9Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon10Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon11Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon12Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon13Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon14Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon15Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon16Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon17Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon18Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon19Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon20Color "[MeasureRunRainRGB]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!Refresh "#SkinName#\#SkinName#"][!Refresh][!Refresh "#SkinName#\Settings"]
All 20 icons get the same random color:
Code: Select all
[MeasureRandomColor1]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor2]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor3]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[Tray1AllIconsColorRandomR1]
Meter=Button
ButtonImage=#@#Images\Settings\LeftButton.png
X=175
Y=140
W=40
H=40
AntiAlias=1
LeftMouseUpAction=[!WriteKeyValue Variables Tray1Icon1Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon2Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon3Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon4Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon5Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon6Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon7Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon8Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon9Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon10Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon11Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon12Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon13Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon14Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon15Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon16Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon17Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon18Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon19Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon20Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!Refresh "#SkinName#\#SkinName#"][!Refresh][!Refresh "#SkinName#\Settings"]
Code: Select all
[MeasureRandomColor1]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor2]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor3]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor4]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor5]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor6]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor7]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor8]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor9]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor10]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor11]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor12]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor13]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor14]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor15]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor16]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor17]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor18]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor19]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor20]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor21]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor22]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor23]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor24]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor25]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor26]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor27]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor28]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor29]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor30]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor31]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor32]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor33]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor34]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor35]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor36]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor37]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor38]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor39]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor40]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor41]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor42]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor43]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor44]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor45]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor46]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor47]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor48]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor49]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor50]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor51]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor52]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor53]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor54]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor55]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor56]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor57]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor58]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor59]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[MeasureRandomColor60]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=1
[Tray1AllIconsColorRandomUniqueR1]
Meter=Button
ButtonImage=#@#Images\Settings\RightButton.png
X=54r
Y=r
W=40
H=40
AntiAlias=1
LeftMouseUpAction=[!WriteKeyValue Variables Tray1Icon1Color "[MeasureRandomColor1],[MeasureRandomColor2],[MeasureRandomColor3]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon2Color "[MeasureRandomColor4],[MeasureRandomColor5],[MeasureRandomColor6]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon3Color "[MeasureRandomColor7],[MeasureRandomColor8],[MeasureRandomColor9]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon4Color "[MeasureRandomColor10],[MeasureRandomColor11],[MeasureRandomColor12]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon5Color "[MeasureRandomColor13],[MeasureRandomColor14],[MeasureRandomColor15]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon6Color "[MeasureRandomColor16],[MeasureRandomColor17],[MeasureRandomColor18]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon7Color "[MeasureRandomColor19],[MeasureRandomColor20],[MeasureRandomColor21]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon8Color "[MeasureRandomColor22],[MeasureRandomColor23],[MeasureRandomColor24]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon9Color "[MeasureRandomColor25],[MeasureRandomColor26],[MeasureRandomColor27]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon10Color "[MeasureRandomColor28],[MeasureRandomColor29],[MeasureRandomColor30]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon11Color "[MeasureRandomColor31],[MeasureRandomColor32],[MeasureRandomColor33]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon12Color "[MeasureRandomColor34],[MeasureRandomColor35],[MeasureRandomColor36]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon13Color "[MeasureRandomColor37],[MeasureRandomColor38],[MeasureRandomColor39]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon14Color "[MeasureRandomColor40],[MeasureRandomColor41],[MeasureRandomColor42]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon15Color "[MeasureRandomColor43],[MeasureRandomColor44],[MeasureRandomColor45]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon16Color "[MeasureRandomColor46],[MeasureRandomColor47],[MeasureRandomColor48]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon17Color "[MeasureRandomColor49],[MeasureRandomColor50],[MeasureRandomColor51]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon18Color "[MeasureRandomColor52],[MeasureRandomColor53],[MeasureRandomColor54]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon19Color "[MeasureRandomColor55],[MeasureRandomColor56],[MeasureRandomColor57]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!WriteKeyValue Variables Tray1Icon20Color "[MeasureRandomColor58],[MeasureRandomColor59],[MeasureRandomColor60]" #@#Memory\Themes\Tray1\#ThemeTray1#.inc"][!Refresh "#SkinName#\#SkinName#"][!Refresh][!Refresh "#SkinName#\Settings"]
CYA!
Michael.