绿色风's Blog
专注AutoIT(Au3)
  • 首页
  • 流●年
  • 笔●记
    • 学习随记
    • 源码示例
  • 脚●本
    • UDF(收集)
    • 工作室UDF
    • 工具●教程
    • 教程之GDI
  • 作●品
  • 下●载
  • 情怀ExcelTip
12月142015

AU3更改壁纸例子

作者:绿色风   发布:2015-12-14 12:34 Monday   分类:   阅读:14226次   评论:19条  

来源:==>>官方论坛<<==

使用ObjCreateInterface 

创建IActiveDesktop 

更改壁纸例子



;===============================================================================
#interface "IActiveDesktop"
Global Const $sCLSID_ActiveDesktop = "{75048700-EF1F-11D0-9888-006097DEACF9}"
Global Const $sIID_IActiveDesktop = "{F490EB00-1240-11D1-9888-006097DEACF9}"
Global Const $tagIActiveDesktop = _
        "ApplyChanges hresult(dword);" &amp; _
        "GetWallpaper hresult(wstr;uint;dword);" &amp; _
        "SetWallpaper hresult(wstr;dword);" &amp; _
        "GetWallpaperOptions hresult(struct*;dword);" &amp; _
        "SetWallpaperOptions hresult(struct*;dword);" &amp; _
        "GetPattern hresult(wstr;uint;dword);" &amp; _
        "SetPattern hresult(wstr;dword);" &amp; _
        "GetDesktopItemOptions hresult(struct*;dword);" &amp; _
        "SetDesktopItemOptions hresult(struct*;dword);" &amp; _
        "AddDesktopItem hresult(struct*;dword);" &amp; _
        "AddDesktopItemWithUI hresult(hwnd;struct*;dword);" &amp; _
        "ModifyDesktopItem hresult(struct*;dword);" &amp; _
        "RemoveDesktopItem hresult(struct*;dword);" &amp; _
        "GetDesktopItemCount hresult(int*;dword);" &amp; _
        "GetDesktopItem hresult(int;struct*;dword);" &amp; _
        "GetDesktopItemByID hresult(ulong_ptr;struct*;dword);" &amp; _
        "GenerateDesktopItemHtml hresult(wstr;struct*;dword);" &amp; _
        "AddUrl hresult(hwnd;wstr;struct*;dword);" &amp; _
        "GetDesktopItemBySource hresult(wstr;struct*;dword);"
;===============================================================================

Global Const $AD_APPLY_ALL = 0x00000007

;;;;;;;;;;;;;;;;;;; Example ;;;;;;;;;;;;;;;;;;;;;;;;;;;
$oActiveDesktop = ObjCreateInterface($sCLSID_ActiveDesktop, $sIID_IActiveDesktop, $tagIActiveDesktop)

$sFile = FileOpenDialog("Select New Wallpaper", "", "Images (*.jpg;*.bmp;*.png;*.gif;*.whatever)") ; whatever
If $sFile Then
    $oActiveDesktop.SetWallpaper($sFile, 0)
    $oActiveDesktop.ApplyChanges($AD_APPLY_ALL)
EndIf
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;








本文固定链接: http://www.jianyiit.com/post-155.html

blogger
该日志由 绿色风 于2015-12-14 12:34 Monday发表在 分类下。
版权所有:《绿色风's Blog》 → 《AU3更改壁纸例子》;
除特别标注,本博客很多文章均为原创. 互联分享,尊重版权,转载请以链接形式标明本文地址;
本文标签:

扫描二维码,在手机上阅读
上一篇::女生的裙子越短越好
下一篇:AU3的强制注册表刷新

热门文章

相关文章

  • au3对【变量】的混合输出,便于程序调试测试
  • AU3编写串口调试程序
  • Au3差异加密
  • BlockInput函数扩展【阻止来自鼠标和键盘的所有输入,而不会显示UAC警告】
  • 中文字符串转拼音字符串UDF
评论列表 ↓
#19 Zodiacqtj      2025-05-17 10:54 @回复
book about the chess of love ", created by
#18 Rigidusp      2025-05-01 04:52 @回复
ancient and medieval Latin,
#17 AlexeyTuh      2025-04-19 11:01 @回复
<a href=>Programs as SaaS</a>
#16 AlexeyTuh      2025-04-11 16:26 @回复
<a href=>Programs as SaaS</a>
#15 Visioneoh      2025-04-08 06:00 @回复
mostly in monasteries.
#14 Rigidkhu      2025-04-03 07:08 @回复
so expensive material
#13 Vortexton      2025-04-02 09:21 @回复
Testaru. Best known
#12 Holographiceub      2025-03-24 03:46 @回复
only a few survived.
#11 AlexeyTuh      2025-03-16 16:14 @回复
<a href=>Programs as SaaS</a>
成不了楷模,当个凯子也是可以的。 Incipioskq      2025-03-04 02:44 @回复
Duke de Montosier
早起的鸟儿有虫吃。 AlexeyTuh      2025-02-27 12:21 @回复
<a href=>Programs as SaaS</a>
手拿菜刀砍电线,一路火花带闪电。 Robertmiz      2025-02-20 18:53 @回复
В Санкт-Петербурге:
是鸟总会有飞的一天。 Ascentrvb      2025-02-15 07:37 @回复
The most common form
你的出现,全场震动。 Fendervyk      2025-02-15 06:54 @回复
, text and illustrations to which
一生复能几,倏如流电惊。 TommyPiori      2025-02-11 14:13 @回复
Backed by 13 years of expertise, MailBanger.com has been a leader in email marketing. Our platform offers millions of targeted contacts to drive measurable results. Whether you’re targeting B2B leads, our accurately segmented lists are designed to meet your marketing needs. Discover the difference at MailBanger.com!

Trusted by businesses for 13+ years, MailBanger.com has helped thousands of businesses through high-quality email lists. With a vast database across industries, we make it easy to connect with your audience. See why we’re a leader in marketing lists today!

Looking for a reliable partner in marketing? With 13 years of experience, we provide millions of verified leads for email, telemarketing, and direct mail marketing. Our targeted lists are built to get results fast. Take the guesswork out of your campaigns—visit MailBanger.com today!

At MailBanger.com, you’re backed by 13 years of proven success. We offer a database that spans industries to achieve your goals. From email marketing lists, our affordable solutions help you scale. Download your lists today at MailBanger.com.
四楼,你来晚了。 RichardEvace      2025-02-09 00:15 @回复
Im fine
越有内涵的人越低调出现。 Donaldsoady      2025-01-28 09:07 @回复
Hello. I would like to buy advertising on your site. Write to me
自古二楼出人才。 NeuroSemantBeta      2025-01-23 21:22 @回复
我们很高兴邀请您参加我们开创性的SEO神经网络的独家测试阶段。 作为您在搜索引擎优化领域的可靠伙伴,我们的平台提供八种语言的语义核心的自动创建。


主要特点:


自动生成语义核心和网站结构。
关键字聚类在搜索引擎中最大的可见性.
全球复盖,支持17种语言。

与我们一起探索我们的先进技术如何提高您的在线形象,并推动您的业务在搜索排名中达到新的高度。


我们期待着您的加入
呦,果断人中龙凤! Nespressotwl      2025-01-15 09:46 @回复
from a printed book, reproduction
取消回复

发表评论

亲,头像对么?

19 + 46 =

提交中,请稍候……


木有头像就木JJ啦!还木有头像吗?点这里申请属于你的个性Gravatar头像吧!


    站点统计
    • 运行时间: 20254 天
    • 日志总数: 365 篇
    • 评论数量: 7237 条
    • 微语数量: 6 条
    • 附件总量: 388 件
  • 逝出的青春

  • 打赏"绿色风"



      扫码关注本站公众号 可搜本站内容

  • Autoit V3 脚本交流群

      常驻群1:905774875
      常驻群2:40672266


  • 链接

    • AU3中文论坛
    • Excel资料库
    • 完美者博客
    • 顺网小哥'S Blog
    • 猛牛哥的博客
    • 网吧系统下载
  • 分类

    • 流●年(66)
    • 笔●记(0)
    • 脚●本(0)
    • 作品(21)
    • 学习随记(51)
    • 源码示例(68)
    • UDF(收集)(26)
    • 工作室UDF(30)
    • 工具●教程(62)
    • 教程之GDI(24)
Copyright © 2013 绿色风's Blog. Powered by emlog. Theme by 射雕天龙. 鄂ICP备2021011689号-1 鄂公网安备42102302000078号 sitemap