[提问] 如果何AU3写出如右键刷新的效果
本帖最后由 laojikelly 于 2010-1-27 15:54 编辑小的遇到一个问题.修改注册表隐藏文件后如果不刷新的话.处于显示隐藏文件的状态的话.是可以看到文件的.
需要右键刷新一次.文件才会隐藏.
请教诸位大哥.如何实现这个功能.谢谢了.
小的试了好多刷新的方法,全部都不行。请求诸位大哥指引指引。 DllCall("user32.dll","int","SendMessageTimeout","hwnd",65535,"int",26,"int",0,"int",0,"int",0,"int",1000,"str","dwResult")
http://www.autoitx.com/forum.php?mod=viewthread&tid=175 DllCall("user32.dll","int","SendMessageTimeout","hwnd",65535,"int",26,"int",0,"int",0,"int",0,"int",1000,"str","dwResult")
这个是不行的。我试过了。不然我也不会在这问了。 #Include <WinAPI.au3>
WinActivate ("")
_WinAPI_PostMessage(ControlGetHandle("", "", "SysListView321"),256,116,0); 刷新我的电脑
_WinAPI_PostMessage(ControlGetHandle("", "", "SysListView321"),256,116,0);刷新桌面 为什么不用ATTRIB 隐藏呢? 就不用刷新了吧 Func _Update_Explorer()
Local $bOld = Opt("WinSearchChildren", True)
Local $a = WinList("")
For $i = 0 To UBound($a) - 1
DllCall("user32.dll", "long", "SendMessage", "hwnd", $a[$i], "int", 0x111, "int", 28931, "int", 0)
Next
Opt("WinSearchChildren", $bOld)
EndFunc;==>_Update_Explorer 强!!!!!!!!!收下了 谢谢 呵呵,不错啊。学习了。 厉害,收藏了 收藏备用哦 envupdate()行不行?没试过 收藏了,会有用的 好东西 保留一下~~~~~~~~
页:
[1]