svkhtn Posted September 26, 2006 Share Posted September 26, 2006 Hi,Could anyone tell me how to tell the current IE page to update the proxy right after the registry hack?At the moment, I did:RegWrite("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "REG_SZ", $sProxy & $sPort) Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE") WinWait("Google") WinClose("Google")Because my default page is google, I tried to open a new page with IE. This will tell the IE to update, and then closed this google page immediately. It worked. However, sometimes I used the IE page so quickly after the update that the proxy was still the original one.I searched and found this thread:http://www.autoitscript.com/forum/index.php?showtopic=30207ParoXsitiC mentioned about making a DllCall to WININET.DLL.Could anyone please tell me how to call this DLL or is there any better way?Many thanks,SV Link to comment Share on other sites More sharing options...
djek Posted September 26, 2006 Share Posted September 26, 2006 Hi,Could anyone tell me how to tell the current IE page to update the proxy right after the registry hack?I just close the IE proces and start it again.It will read the new settings after that. Link to comment Share on other sites More sharing options...
svkhtn Posted September 26, 2006 Author Share Posted September 26, 2006 Sorry, I forgot to mention I wanted to do it on the fly (i.e. I don't want to close the current page). Any help ? Link to comment Share on other sites More sharing options...
DaleHohm Posted September 26, 2006 Share Posted September 26, 2006 I believe someone a few months ago had a way to make this work... search the forum. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
svkhtn Posted September 27, 2006 Author Share Posted September 27, 2006 I searched and read through many threads before opening this one to ask. I am wondering if the link I provided in my first post is what you mentioned, Dale?In that thread, ParoXsitiC used the script to open the internet properties and updated the options inside.He also mentioned to use DllCall but the thread was left open. I am wondering how to make that DllCall.Thanks!I believe someone a few months ago had a way to make this work... search the forum.Dale Link to comment Share on other sites More sharing options...
DaleHohm Posted September 27, 2006 Share Posted September 27, 2006 I searched and read through many threads before opening this one to ask. I am wondering if the link I provided in my first post is what you mentioned, Dale?In that thread, ParoXsitiC used the script to open the internet properties and updated the options inside.He also mentioned to use DllCall but the thread was left open. I am wondering how to make that DllCall.Thanks!Nope, it was this thread. It didn't focus on proxy setting, but includes the DLLCall taht you should be able to use to make changes immediate.Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
svkhtn Posted September 27, 2006 Author Share Posted September 27, 2006 Thanks for the link, Dale. I read that thread before but didn't notice it. 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