Sign in to follow this  
Followers 0
svkhtn

Help: tell IE to update the proxy after registry hack ?

7 posts in this topic

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=30207

ParoXsitiC 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

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Thanks for the link, Dale.

I read that thread before but didn't notice it.

Share this post


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
Sign in to follow this  
Followers 0