Jump to content

Recommended Posts

Posted

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.

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
Posted

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

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...