Jump to content

Recommended Posts

Thanks, Larry. :whistle: 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
      CurrentVersion\Explorer\Advanced", "Hidden", "REG_DWORD", 1) 
      CurrentVersion\Explorer\Advanced", "Hidden", "REG_DWORD", 2) 

;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 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 post
Share on other sites

Hmm, didn't see any memory functions in the latest beta... :whistle:

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 post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...