AU3设置桌面背景墙纸

admin AutoIt3评论8031字数 577阅读模式
  1. ;居中   TileWallpaper = 0 WallpaperStyle = 0  (默认)  
  2. ;填充 TileWallpaper = 1   WallpaperStyle = 0  
  3. ;拉伸   TileWallpaper = 1 WallpaperStyle = 2  
  4. RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop","TileWallpaper","REG_SZ"0)  
  5. RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop","WallpaperStyle","REG_SZ"2)  
  6.   
  7. $Bmp = @ScriptDir&"\meinv1-175.jpg"  
  8. DllCall("user32.dll","int","SystemParametersInfo""int",20,"int",1,"str",$Bmp,"int",1 )  
  9. ;DllCall("SystemParametersInfo", UInt, 0x14, UInt, 0, Str, A_WinDir . "\winnt.bmp", UInt, 2)    
  10. ;设置桌面背景墙纸,SystemParametersInfo(20, True, 图片路径, 1)  

版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
admin
  • 本文由 发表于 2020年11月6日 21:55:58
  • 转载请务必保留本文链接:https://www.58pxe.com/6740.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: