Jump to content
Sign in to follow this  
billthecreator

Desktop Changing

Recommended Posts

Swift

Wow. This question has been answered today, and can be answered by searching.

Share this post


Link to post
Share on other sites
JustinReno

I found one registry key that changes the background without having to change 3/4 registry keys. Let me find it...

Share this post


Link to post
Share on other sites
James

Hi Bill

Func _ChangeWallpaper($bmpfile, $iposition = "3")
    Switch $iPosition
        Case 1; Tile
            RegWrite('HKCU\Control Panel\Desktop', 'TileWallpaper', 'reg_sz', '1')
            RegWrite('HKCU\Control Panel\Desktop', 'WallpaperStyle', 'reg_sz', '0')
        Case 2; Center
            RegWrite('HKCU\Control Panel\Desktop', 'TileWallpaper', 'reg_sz', '0')
            RegWrite('HKCU\Control Panel\Desktop', 'WallpaperStyle', 'reg_sz', '0')
        Case 3; Stretch
            RegWrite('HKCU\Control Panel\Desktop', 'TileWallpaper', 'reg_sz', '0')
            RegWrite('HKCU\Control Panel\Desktop', 'WallpaperStyle', 'reg_sz', '2')
    EndSwitch
    RegWrite('HKCU\Control Panel\Desktop', 'Wallpaper', 'reg_sz', $bmpfile)
    DllCall("user32", "int", "SystemParametersInfo", "int", 20, "int", 0, "str", $bmpfile, "int", 0)
EndFunc

....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×