Sign in to follow this  
Followers 0
McFisto

IE Proxy Settings

6 posts in this topic

Hi,

I'm brand new to AutoIt and trying to work my way through the Tutorials - but I need to get a job done and hoped someone would help me out.

Any help you can give will help with my learning process.

I would like to write a script that first checks to see if the Proxy setting in IE is turned on, if it is, displays a notification for the user to OK informing them the Proxy will be turned off.

If it is off, then it displays a notification for the user to OK informing them the Proxy will be turned on.

The IE settings I want to change is:

Tools, Internet Options, Connections Tab, LAN Settings, Use a Proxy Server for your LAN (tick box) I simply want to toggle this on or off depending what it's currently set to.

Any help will be appreciated.

Carl.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi,

you to proof the following Reg_Key:

See Function RegRead to get Keyvalue

Hkey_Current_User\Software\Windows\CurrentVersion\Internet Settings ProxyEnable 0x00000000 -> Disabled, 0x00000001 -> Enabled

See Function RegWrite to set value

If you want to enable proxy then:

1) Set Hkey_Current_User\Software\Windows\CurrentVersion\Internet Settings ProxyEnable REG_DWORD 0x00000001

2) Set Hkey_Current_User\Software\Windows\CurrentVersion\Internet Settings ProxyServer REG_SZ <Proxy:Port>

Not necessary

3) Set Hkey_Current_User\Software\Windows\CurrentVersion\Internet Settings ProxyOverride REG_SZ <local> This for not using Proxy for local adresses.

If you want to disable proxy then just

Set Hkey_Current_User\Software\Windows\CurrentVersion\Internet Settings ProxyEnable REG_DWORD 0x00000000

;-))

Stefan

Edited by 99ojo

Share this post


Link to post
Share on other sites

For the above to work/take effect you need to restart the IE (close and open again)

Share this post


Link to post
Share on other sites

For the above to work/take effect you need to restart the IE (close and open again)

Yes and don't forget the correct key is

Hkey_Current_User\Software\Microsoft\Windows\CurrentVersion\Internet Settings

Sry

Stefan

Share this post


Link to post
Share on other sites

Is it not possible with AutoIt to achieve this by controling the button itself rather than making Registry changes?

Share this post


Link to post
Share on other sites

It is possible but more complicated.It can be done with sending key strokes to the IE window.

For example Alt+T to open the tools menu.And that is not very reliable.

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