CyberSlug Posted February 5, 2004 Share Posted February 5, 2004 (edited) Thanks, Larry. EnvUpdate doesn't do anything for me, by the way.Here's another way for anyone interested:It uses Folder Options to force a refresh by simply toggling the first item so that the Apply button becomes enabled. Note: Simply using ControlEnable won't work! I guess Windows is smart enough to avoid refreshing when there are no changes to apply--but is stupid enough to be fooled by clicking and unclicking an item!AutoItSetOption("SendKeyDelay", 0) AutoItSetOption("WinWaitDelay", 100) Run("rundll32 shell32.dll,Options_RunDLL"); Launch Folder Options WinWaitActive("Folder Options") WinShow("Folder Options","",@SW_HIDE) $key = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\_ CurrentVersion\Explorer\Advanced", "Hidden") ; Write the updated registry key If Int($key) == 2 Then RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\_ CurrentVersion\Explorer\Advanced", "Hidden", "REG_DWORD", 1) Else RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\_ CurrentVersion\Explorer\Advanced", "Hidden", "REG_DWORD", 2) EndIf ;Use Folder Options to force a refresh ControlCommand("Folder Options","","SysTabControl321","TabRight","") ControlFocus("Folder Options","","SysTreeView321") ControlSend("Folder Options","","SysTreeView321","{SPACE}{SPACE}") ControlClick("Folder Options","","OK") Edited February 5, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
sykes Posted February 5, 2004 Share Posted February 5, 2004 stay tuned... next day or so, AutoIt3 will have Memory Stat functionsWoohoo!!EDIT: i hopeĀ Woohoo anyways We have enough youth. How about a fountain of SMART? Link to comment Share on other sites More sharing options...
Bartokv Posted February 7, 2004 Author Share Posted February 7, 2004 I've found that sending "^{F5}" forces the content of most windows/dialog boxes to be refreshed - regardless of the caching state. Hope this helps! Link to comment Share on other sites More sharing options...
Bartokv Posted February 7, 2004 Author Share Posted February 7, 2004 stay tuned... next day or so, AutoIt3 will have Memory Stat functionsHmm, didn't see any memory functions in the latest beta... Link to comment Share on other sites More sharing options...
Valik Posted February 7, 2004 Share Posted February 7, 2004 Hmm, didn't see any memory functions in the latest beta... I was unable to send it to Jon until this morning. Even though my PC parts arrived on time, I ran into other complications and was unable to get it sent to him before he released 3.0.92. If you ask him nicely (and maybe beg a bit), he may put it in the first release as he should have the code for it now. Link to comment Share on other sites More sharing options...
Bartokv Posted February 7, 2004 Author Share Posted February 7, 2004 No worries. I don't want to bother Jon about this request since he has enough headaches as it stands. I'll try to be patient, and hope that it magically appears in the next release. 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