It is easy to set the an image in explorer as wallpaper but on my system it is always stretched to fit the desktop and it is a pain to do the extra clicks ..........
Code: Select all
^numpadenter::
RegRead, sfile, HKEY_CURRENT_USER\Control Panel\Desktop, WallPaper
RegRead, style, HKEY_CURRENT_USER\Control Panel\Desktop, WallPaperStyle
style:=style=1?0:1
RegWrite, REG_SZ, HKEY_CURRENT_USER\Control Panel\Desktop, WallPaperStyle ,%style%
if errorlevel
MsgBox, error
DllCall("SystemParametersInfo", uint, 0x0014, uint, 0x0000, str, sfile, uint, 0x0003)
return