laojikelly Posted January 26, 2010 Share Posted January 26, 2010 Hello everyone! How to simulate as Refresh ? I think I'm bad for English.And that I have a question. I want to hide a file and through the regedit.But I'm fail.It must Manual Refresh,the file can't be hide at once. I try many many ways to try it.Please Help me! Thanks. code: RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", "Hidden", "reg_dword", "2") fail: DllCall("user32.dll","int","SendMessageTimeout","hwnd",65535,"int",26,"int",0,"int",0,"int",0,"int",1000,"str","dwResult") DllCall("user32.dll","int","SendMessageTimeout","hwnd",65535,"int",26,"int",0,"int",0,"int",0,"int",1000,"str","dwResult") Run ("RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters") Send("{f5}") ================================================================================================================================= Func _Refreshicon() FileWriteLine(@TempDir & "\Refreshicon.inf","[version]" & @CRLF & "signature=$chicago$") RunWait ('Rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 '& @TempDir & "\Refreshicon.inf",@TempDir,@SW_HIDE) FileDelete (@TempDir & "\Refreshicon.inf") Return 1 EndFunc ================================================================================================================================= ================================================================================================================================= Func _RefreshIconMSG() DllCall("shell32.dll", "none", "SHChangeNotify", _ "long", 0x8000000, _ "uint", BitOR(0x0, 0x1000), _ "ptr", 0, _ "ptr", 0 _ ) Return 1 EndFunc ================================================================================================================================= OK: MouseClick("right") [code]Send("{e}") ;but i don't want it. ======================================= Do ProcessClose("explorer.exe") Until Not ProcessExists("explorer.exe") Run("gpupdate /force","",@SW_HIDE) ======================================= ;but i don't want it. Link to comment Share on other sites More sharing options...
Yashied Posted January 26, 2010 Share Posted January 26, 2010 #666239 My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
laojikelly Posted January 27, 2010 Author Share Posted January 27, 2010 thank you very much!!! thank you very much!!! Func _Update_Explorer() Local $bOld = Opt("WinSearchChildren", True) Local $a = WinList("[CLASS:SHELLDLL_DefView]") For $i = 0 To UBound($a) - 1 DllCall("user32.dll", "long", "SendMessage", "hwnd", $a[$i][1], "int", 0x111, "int", 28931, "int", 0) Next Opt("WinSearchChildren", $bOld) EndFunc;==>_Update_Explorer Thanks for your help!! Link to comment Share on other sites More sharing options...
laojikelly Posted January 27, 2010 Author Share Posted January 27, 2010 Please close the topic,I'm bad for English. I'm sorry. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now