Windows Registry Help

Mark Hammond mhammond at skippinet.com.au
Fri Dec 13 03:53:50 EST 2002


Chad Anderson wrote:
> Greetings!
> 
> 	Well, I'll get right to it. Here's my problem. I have 658923456389 wallpapers saved...or soemwhere close...and I want a random one each time I login. I've created a program that when run goes in and sets the registry key HKEY_CURRENT_USER\\Control Panel\\Desktop\\Wallpaper to a random wallpaper chosen from my wallpaper directory. Now, it sets the key and when I bring up desktop properties it shows that as being the current desktop background, however, the old one is still there. What I need to do is find out how I apply it. I got regmon and watch the registry and what it does at the exact time I hit Apply, but I can't tell which thing is for applying the wallpaper! There are almost 100 registry movements in that exact moment. Now, my question is, do any of you know which one I need to query to get it all to go? I've been testing out various ones but none seem to work.
> 

You may just need to send a WM_SETTINGCHANGE message to the desktop 
window.  Using SendMessage with HWND_BROADCAST may be all you need.

Mark.




More information about the Python-list mailing list