跪求删除桌面IE图标能及时生效的代码
如题?跪求删除桌面IE图标能及时生效的代码,求大神帮助 本帖最后由 haijie1223 于 2013-9-4 11:21 编辑~别跪啊,趴下就行~好羡慕楼主,08年的id~
#Include <ACN_MISC.au3>
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{871C5380-42A0-1069-A2EA-08002B30309D}","REG_DWORD","1")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{871C5380-42A0-1069-A2EA-08002B30309D}","REG_DWORD","1")
_RefreshIcon() >"D:\autoit3\SciTe\ACNWrapper\ACNWrapper.exe" /run /ErrorStdOut /in "C:\Documents and Settings\Administrator\桌面\33.au3" /autoit3dir "D:\autoit3" /UserParams
+>11:53:40 开始执行 ACNWrapper v.1.0.1.4
+> ============================================
+>执行环境:
+> CPU构架: X64
+> 系统构架: X86
+> 系统语言: 0804
+> 键盘布局: 00000804
+> 内存总量: 3503MB
+> 内存剩余: 2922MB
+> 操作系统: WIN_XP/Service Pack 3
+> AU3版本: 3.3.9.4
+> ============================================
>运行 AU3Check (3.3.9.19)开始目录:D:\autoit3
+>11:53:41 AU3Check 完成:0
>运行:(3.3.9.4):D:\autoit3\autoit3.exe "C:\Documents and Settings\Administrator\桌面\33.au3"
D:\autoit3\Include\StructureConstants.au3 (1687) : ==> ?????.:
Global Const $tagREBARBANDINFO = "uint cbSize;uint fMask;uint fStyle;dword clrFore;dword clrBack;ptr lpText;uint cch;" & "int iImage;hwnd hwndChild;uint cxMinChild;uint cyMinChild;uint cx;handle hbmBack;uint wID;uint cyChild;uint cyMaxChild;" & "uint cyIntegral;uint cxIdeal;lparam lParam;uint cxHeader" & ((@OSVersion = "WIN_XP") ? "" : ";" & $tagRECT) & ";uint uChevronState"
Global Const $tagREBARBANDINFO = "uint cbSize;uint fMask;uint fStyle;dword clrFore;dword clrBack;ptr lpText;uint cch;" & "int iImage;hwnd hwndChild;uint cxMinChild;uint cyMinChild;uint cx;handle hbmBack;uint wID;uint cyChild;uint cyMaxChild;" & "uint cyIntegral;uint cxIdeal;lparam lParam;uint cxHeader" & ((@OSVersion = "WIN_XP") ^ ERROR
->11:53:41 AutoIT3.exe 完成::1
+>11:53:42 ACNWrapper 完成..
>退出代码: 1 运行时间: 2.452 秒 上面的脚本有错 本帖最后由 nmgwddj 于 2013-9-4 13:53 编辑
回复 4# shounei
DllCall("shell32.dll", "none", "SHChangeNotify", "long", 0x8000000, "int", 0, "ptr", 0, "ptr", 0)
自测有效,也一直在用,SHChangeNotify参考MSDN,第一个参数看了下VS里面的备注是对应SHCNE_INTERRUPT
_WinAPI_ShellChangeNotify($SHCNE_ASSOCCHANGED, $SHCNF_FLUSH)
这才是刷新图标命令 回复 2# haijie1223
我去潜水冠军哈哈 看不懂,很晕 我用2楼的直接就可以了,,我的是XP系统,不知道是不是和这个有关系
页:
[1]