例子:更改壁纸
优质
小牛编辑
183浏览
2023-12-01
引用脚本的内容:
/*更改壁纸 by Ansifa*/ Name "更改壁纸" OutFile "更改壁纸.exe" Caption "更改壁纸" SetCompressor /FINAL /SOLID lzma !include UsefulLib.nsh page instfiles Var HWND Section ${GetWallpaper} "$r0" ;获得当前壁纸路径 ${GetWallpaperOptions} $r1 ;获得当前壁纸覆盖方式 0:居中;1:平铺;2:拉伸 ${SetWallpaperOptions} 2 ;设置壁纸覆盖方式 0:居中;1:平铺;2:拉伸 ${SetWallpaper} "M:\Dog.jpg" ;设置壁纸 DetailPrint '$r0' DetailPrint '$r1' DetailPrint '$R2 $R3' SectionEnd