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.
It is currently April 25th, 2024, 1:34 pm
Change skin depending on background
-
- Posts: 8
- Joined: February 2nd, 2013, 1:26 pm
-
- Rainmeter Sage
- Posts: 5406
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Change skin depending on background
Have you looked at Rainmeter sdk?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.
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.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 56
- Joined: December 27th, 2011, 12:32 pm
Re: Change skin depending on background
Try this:
It works for me on Windows 7, but I haven't tested it on any other operating system yet.
Code: Select all
[mWallpaper]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Software\Microsoft\Internet Explorer\Desktop\General
RegValue=WallpaperSource
OnChangeAction=Bang for your program
-
- Posts: 8
- Joined: February 2nd, 2013, 1:26 pm
Re: Change skin depending on background
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?prince1142003 wrote:Try this:It works for me on Windows 7, but I haven't tested it on any other operating system yet.Code: Select all
[mWallpaper] Measure=Registry RegHKey=HKEY_CURRENT_USER RegKey=Software\Microsoft\Internet Explorer\Desktop\General RegValue=WallpaperSource OnChangeAction=Bang for your program
-
- Posts: 446
- Joined: August 7th, 2012, 9:18 pm
Re: Change skin depending on background
would you mind sharing your program? (sourcecode)
Powered by Sublime Text 3 with Rainmeter-Package