Link to home
Start Free TrialLog in
Avatar of axtens
axtensFlag for Australia

asked on

How to programmatically set html wallpaper?

I have successfully setup an HTML desktop wallpaper through the Display Properties, Desktop tab. What I want to know is how to do it programmatically.

I have been able to discover that images used for wallpaper are stored in subkeys of HKCU\Control Panel\Desktop. Similarly, HTML files details are stored in subkeys of HKCU\Software\Microsoft\Internet Explorer\Desktop\General.

I can store data in the former, issue a desktop refresh (oShell.Run "%windir%\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True), and have the image appear. However, if I store details in the latter location and do a desktop refresh, nothing happens.

Presumably, I'm missing a message that needs to be sent somewhere, and UpdatePerUserSystemParameters ain't it.

Any clues?
ASKER CERTIFIED SOLUTION
Avatar of nffvrxqgrcfqvvc
nffvrxqgrcfqvvc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of axtens

ASKER

Even when Active Desktop is not, as such, enabled?
Avatar of axtens

ASKER

A good implementation of the solution can be found at .

Thanks, egl1044, you're worth your weight in assorted precious substances.