找回密码
 加入
搜索
查看: 2783|回复: 3

[系统综合] 【已解决】AU3如何刷新图标缓存

[复制链接]
发表于 2012-8-7 10:20:12 | 显示全部楼层 |阅读模式
本帖最后由 虎虎虎 于 2012-8-7 10:39 编辑

我通过搜索,搜到http://www.autoitx.com/viewthrea ... C%B1%EA%BB%BA%B4%E6
可是在win7旗舰版中测试没反应。

之后我在NSIS(梦想吧)找到一段刷新图标缓存的代码:
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
用NSIS编译成功。

完整代码如下:
OutFile "Build\刷屏.EXE"

Function .onInit
System::Call 'Shell32::SHChangeNotify(i 0x8000000, i 0, i 0, i 0)'
Quit
FunctionEnd

Section
SectionEnd
不知如何转换成AU3代码!?
发表于 2012-8-7 10:32:58 | 显示全部楼层
DllCall("shell32.dll", "none", "SHChangeNotify", "long", 0x8000000, "int", 0, "ptr", 0, "ptr", 0)
;刷新图标
 楼主| 发表于 2012-8-7 10:39:05 | 显示全部楼层
谢谢楼上,很好。
发表于 2015-9-19 20:48:10 | 显示全部楼层
也非常感谢楼主,找了好久终于找到这个函数。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-28 20:15 , Processed in 0.090704 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表