PDA

View Full Version : Change Desktop Wallpaper



Ron
October 13th, 2002, 12:55 PM
At this point i don't have anything specific to do that. Maybe there is a commandline utility in windows that allows doing this I don't know. I'll add it to the todo list.

-Ron

Mark F
October 13th, 2002, 12:55 PM
Since this is "on the todo list", I thought I'd drop in some VC++ code that changes the wallpaper (it works on my system, anyway). :smile:


CString sFilename; // .bmp filename
SystemParametersInfo(SPI_SETDESKWALLPAPER,0,(void* )(LPCTSTR)sFilename,SPIF_SENDCHANGE);

Acording to the doc, this updates the registry and sends a broadcast message too.

BSchuler
October 13th, 2002, 12:55 PM
Is there a command or something I could do to automate changing the desktop wallpaper if I push a button? I tried changing the registry, but the effect doesn't work, even if the desktop is refreshed. Help.

I want to have the wallpaper show a small picture of my remote, based on wich program is open.

BSchuler
October 13th, 2002, 12:55 PM
Thanks for the answer Ron.

I have grown to love GIRDER! And now consider myself addicted...

BSchuler
October 13th, 2002, 12:55 PM
Answer for others:

WPCHANGE.exe

Use any search engine to find it. It is freeware, command line driven and uses a trick to change the desktop.

shakti
October 17th, 2002, 02:51 PM
I'm looking to do the same thing ... is there a way to do this on a Win2K machine? I tried WPCHANGE.exe but it didn't do anything.

Thanks.

EddStewart
October 18th, 2002, 03:28 AM
Hi,

I recently wrote a tiny program for doing that very task using a similar piece of code as provided by Mark F above (except it's in VB). I've attached it zipped to this message. Just run it with the full path and filename of the image you wish to set as your background as the parameter e.g.

BGrndUpd.exe C:\My Pictures\1234.bmp

Hope this helps,
Edd Stewart

shakti
October 19th, 2002, 04:50 PM
Hi,

I recently wrote a tiny program for doing that very task using a similar piece of code as provided by Mark F above (except it's in VB). I've attached it zipped to this message. Just run it with the full path and filename of the image you wish to set as your background as the parameter e.g.

BGrndUpd.exe C:\My Pictures\1234.bmp

Hope this helps,
Edd Stewart

Thanks very much! It took care of my needs.

Mark F
October 20th, 2002, 02:21 AM
This functionality has been added to the WinLUAEx plugin (1.0.1). You can call the WINDOWS_SetDesktopBitmap( filename ) function from within a Girder LUA script.

NOTE: LUA translates the "\" character to other values so use "/" instead.
Use -
"C:/My Pictures/1234.bmp"
instead of
"C:\My Pictures\1234.bmp"

shakti
October 22nd, 2002, 09:07 PM
This functionality has been added to the WinLUAEx plugin (1.0.1). You can call the WINDOWS_SetDesktopBitmap( filename ) function from within a Girder LUA script.

NOTE: LUA translates the "\" character to other values so use "/" instead.
Use -
"C:/My Pictures/1234.bmp"
instead of
"C:\My Pictures\1234.bmp"

Thanks! I tried it out today and it works quite well.