It is currently April 25th, 2024, 1:34 pm

Change skin depending on background

Share and get help with Plugins and Addons
Qluxzz
Posts: 8
Joined: February 2nd, 2013, 1:26 pm

Change skin depending on background

Post by Qluxzz »

I have written a program in c++ which analyzes the user's current background and says if the current background is mostly dark or bright.

I would like to make this to a Rainmeter plugin so whenever the background changes it will run my program and depending on whether the background is dark or bright it will load an appropriate skin.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Change skin depending on background

Post by eclectic-tech »

Qluxzz wrote:I have written a program in c++ which analyzes the user's current background and says if the current background is mostly dark or bright.

I would like to make this to a Rainmeter plugin so whenever the background changes it will run my program and depending on whether the background is dark or bright it will load an appropriate skin.
Have you looked at Rainmeter sdk?

It has the tools to develop a plugin for Rainmeter. Someone on these forums more familiar with building plugins may be able to give you help.
prince1142003
Posts: 56
Joined: December 27th, 2011, 12:32 pm

Re: Change skin depending on background

Post by prince1142003 »

Try this:

Code: Select all

[mWallpaper]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Software\Microsoft\Internet Explorer\Desktop\General
RegValue=WallpaperSource
OnChangeAction=Bang for your program
It works for me on Windows 7, but I haven't tested it on any other operating system yet.
Qluxzz
Posts: 8
Joined: February 2nd, 2013, 1:26 pm

Re: Change skin depending on background

Post by Qluxzz »

prince1142003 wrote:Try this:

Code: Select all

[mWallpaper]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Software\Microsoft\Internet Explorer\Desktop\General
RegValue=WallpaperSource
OnChangeAction=Bang for your program
It works for me on Windows 7, but I haven't tested it on any other operating system yet.
Thanks now I just need the second part of the equation. How to switch skin depending on if the background is bright or dark. Any thoughts about that?
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Change skin depending on background

Post by thatsIch »

would you mind sharing your program? (sourcecode)