mIRC Homepage
Posted By: Seifer Desktop background... - 04/05/04 04:51 AM
How would I go about return the color of the desktop background, preferably in RGB format?
Posted By: Watchdog Re: Desktop background... - 04/05/04 06:49 AM
Take a screenshot of it and open it in Photoshop. I can't see a way of doing it inside mIRC.
Posted By: Seifer Re: Desktop background... - 04/05/04 12:30 PM
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.
Posted By: neznani Re: Desktop background... - 04/05/04 01:39 PM
and what if the desktop isn't just from one color ? smile
Posted By: Iori Re: Desktop background... - 04/05/04 01:45 PM
Use $regread by qwerty.
//echo -a $regread(HKCU\Control Panel\Colors\Background)
Posted By: Seifer Re: Desktop background... - 05/05/04 12:54 AM
Excellent, thanks.
© mIRC Discussion Forums