mIRC Home    About    Download    Register    News    Help

Print Thread
Desktop background... #81812 04/05/04 04:51 AM
Joined: Nov 2003
Posts: 228
S
Seifer Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
How would I go about return the color of the desktop background, preferably in RGB format?

Re: Desktop background... #81813 04/05/04 06:49 AM
Joined: Dec 2002
Posts: 2,985
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Take a screenshot of it and open it in Photoshop. I can't see a way of doing it inside mIRC.

Re: Desktop background... #81814 04/05/04 12:30 PM
Joined: Nov 2003
Posts: 228
S
Seifer Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
Well, that would be the way to go if I was only using it for a personal script, but I'm experimenting with an idea which uses the desktop background color, so taking a screenshot of my desktop would be kind of pointless. Besides, I could just as easily obtain the color via the desktop properties if that was what I wanted.

I thought that there might be a way of returning it with com objects, but I haven't used them before.

Re: Desktop background... #81815 04/05/04 01:39 PM
Joined: Sep 2003
Posts: 98
N
neznani Offline
Babel fish
Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
and what if the desktop isn't just from one color ? smile


www.stwar.us.to
IRCnet - #stwar
Re: Desktop background... #81816 04/05/04 01:45 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Use $regread by qwerty.
//echo -a $regread(HKCU\Control Panel\Colors\Background)

Re: Desktop background... #81817 05/05/04 12:54 AM
Joined: Nov 2003
Posts: 228
S
Seifer Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Nov 2003
Posts: 228
Excellent, thanks.