laowu3008 发表于 2020-11-6 22:10:31

AU3设置桌面背景墙纸

;居中   TileWallpaper = 0 WallpaperStyle = 0(默认)
;填充 TileWallpaper = 1   WallpaperStyle = 0
;拉伸   TileWallpaper = 1 WallpaperStyle = 2
RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop","TileWallpaper","REG_SZ", 0)
RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop","WallpaperStyle","REG_SZ", 2)

$Bmp = @ScriptDir&"\meinv1-175.jpg"
DllCall("user32.dll","int","SystemParametersInfo", "int",20,"int",1,"str",$Bmp,"int",1 )
;DllCall("SystemParametersInfo", UInt, 0x14, UInt, 0, Str, A_WinDir . "\winnt.bmp", UInt, 2)   
;设置桌面背景墙纸,SystemParametersInfo(20, True, 图片路径, 1)



FOREVER 发表于 2020-11-6 22:26:32

感谢{author}楼主

86466366 发表于 2020-11-7 07:51:29

支持,顶一下。

蓝雨 发表于 2020-11-7 09:21:42

奥利给

zgl2013 发表于 2020-11-7 11:54:17

{author} 感谢楼主分享

dong14425 发表于 2020-11-7 13:17:37

膜拜大神3秒钟

it1918 发表于 2020-11-11 20:51:26

谢谢分享。。
页: [1]
查看完整版本: AU3设置桌面背景墙纸