What this does is find the "average color" of your desktop, by sampling the entire screen and averaging the colors of all the pixels. You call it with "GetAvgColor.exe Varname" and it will set any Rainmeter variable you pass it with the resulting color code in Red,Green,Blue format.
Now now you can have a skin that automatically changes colors when you change your wallpaper!
You will need to be running Rainmeter 1.2 RC1 (r430) or better from http://Rainmeter.net to install this .rmskin. Just run the .rmskin from here or download it and double click it to install and run the skin. The actual addon will be installed in your Addons folder in Rainmeter.
Here is the inlcuded sample skin code, so you can see how to use the addon:
Code: Select all
;=================================================
; Rainmeter configuration file
; Updated June 3, 2010
;=================================================
;[BEGIN CONFIG FILE]==============================
[Rainmeter]
Author=Jeffrey Morley
Update=1000
DynamicWindowSize=1
OnRefreshAction=!Execute ["#ADDONSPATH#GetAvgColor\GetAvgColor.exe" "MyColor"]
;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins
[Metadata]
Name=GetAvgColor
Config=GetAvgColor
Description=Demonstrates use of the GetAvgColor.exe addon for Rainmeter. Sets color variables based on the average color of your desktop
Instructions=Change your wallpaper and click on the skin to test
Version=June 3, 2010
Tags=Color | Addons
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Variant=0
Preview=
;End of added Metadata
[Variables]
MyColor=255,255,255
[MeterText]
Meter=String
SolidColor=0,0,0,100
FontFace=Trebuchet MS
FontSize=30
FontColor=#MyColor#,255
AntiAlias=1
Text=#MyColor#
DynamicVariables=1
LeftMouseUpAction=!Execute ["#ADDONSPATH#GetAvgColor\GetAvgColor.exe" "MyColor"]
[MeterHints]
Meter=String
FontFace=Trebuchet MS
FontColor=255,255,255,255
FontSize=10
AntiAlias=1
X=1
Y=56
ClipString=1
W=200
H=50
Text=Change your wallpaper#CRLF#Then click above
;[END CONFIG FILE]================================