Code: Select all
RefreshExplorer() { ; by teadrinker on D437 @ tiny.cc/refreshexplorer
local Windows := ComObjCreate("Shell.Application").Windows
Windows.Item(ComObject(0x13, 8)).Refresh()
for Window in Windows
if (Window.Name != "Internet Explorer")
Window.Refresh()
}
Older version:
Code: Select all
RefreshExplorer() { ; By SKAN on D35D @ tiny.cc/refreshexplorer
Local Window
ComObjCreate("Shell.Application").Windows.Item(ComObject(0x13,8)).Refresh()
For Window in ComObjCreate("Shell.Application").Windows
If ( Window.Name="Windows Explorer" or Window.Name="File Explorer" )
Window.Refresh()
}
Same effect as pressing F5 button on Desktop, Windows Explorer and Internet Explorer. (Omitted IE from the function, though)