Palestinian Posted November 15, 2014 Share Posted November 15, 2014 Hello everyone, I was wondering where does _IECreateEmbedded store its cache? I'm thinking about creating a little program for my everyday online surfing and I want its cache to be kept so the program won't reload the whole thing whenever I start it. Link to comment Share on other sites More sharing options...
Solution mikell Posted November 15, 2014 Solution Share Posted November 15, 2014 _IECreateEmbedded creates a Webbrowser object (shell.explorer.2) #include <GUIConstantsEx.au3> #include <IE.au3> $oIE = _IECreateEmbedded() GUICreate("Embedded Web control Test", 640, 200) GUICtrlCreateObj($oIE, 10, 50, 600, 100) $label = GUICtrlCreateLabel("", 10, 10, 500, 25) GUISetState() $oIE.Navigate2("shell:cache") GuiCtrlSetData($label, $oIE.locationurl) While 1 $iMsg = GUIGetMsg() Select Case $iMsg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Palestinian 1 Link to comment Share on other sites More sharing options...
Palestinian Posted November 15, 2014 Author Share Posted November 15, 2014 Cheers mate. Another question if it isn't asking too much, is there a way to set a seperate folder for _IECreateEmbedded cache? Link to comment Share on other sites More sharing options...
mikell Posted November 16, 2014 Share Posted November 16, 2014 (edited) The only way I can think of would be to use the Reg* funcs to change it in the registry when starting the script, and then change it back when closing the script Not tried so no assurance about this Edit http://stackoverflow.com/questions/23570606/change-cache-storage-location-for-individual-webbrowser-control-instances Edited November 16, 2014 by mikell Palestinian 1 Link to comment Share on other sites More sharing options...
Palestinian Posted November 16, 2014 Author Share Posted November 16, 2014 The only way I can think of would be to use the Reg* funcs to change it in the registry when starting the script, and then change it back when closing the script Not tried so no assurance about this Edit http://stackoverflow.com/questions/23570606/change-cache-storage-location-for-individual-webbrowser-control-instances Yeah I kind of figured as much and used the following: Func CacheChange() RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders", "Cache", "REG_EXPAND_SZ", "C:\TempAppFiles") EndFunc ;==>CacheChange Func CacheReset() RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders", "Cache", "REG_EXPAND_SZ", "%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files") EndFunc ;==>CacheReset Thank you again, I really appreciate your help. 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