I've tried code I dug up in the forum:
$COLOR_DESKTOP = 1 $COLOR = 0xFFFFFF $DLL_Call = DLLCall("user32.dll","int","SetSysColors","int",1,"int_ptr",$COLOR_DESKTOP,"int_ptr",$color)
but nothing happens.
I've tried this:
RegWrite("HKEY_CURRENT_USER\Control Panel\Colors", "Background", "REG_SZ", "102 154 202") RunWait("rundll32 user32.dll,UpdatePerUserSystemParameters")
... and nothing.
Changing the registry key
HKEY_CURRENT_USER --> Control Panel --> Colors --> Background
works on reboot, but I need to have it immediate.
I've looked at the help, including _WinAPI_SetBkColor in the help, but the code left me glassy-eyed, and doesn't appear to be what I want.
While I'm able to change the wallpaper immediately, I don't want that. I simply want to change the background color, and leave any wallpaper intact.
I munged together code to open Display Properties and make the necessary changes, but that's ugly, and I hope won't be necessary.
Hope someone can help me!