Solved

Set IE Proxy settings

Posted on 2002-07-08
1
258 Views
Last Modified: 2010-04-04
How can I programatically set the LAN Settings in the Internet Explorer to check the "use automatic configuration script" box and enter a proxy address?

To get to where I want to change click Tools, Internet Options, Connections Tab, Lan Settings.

I have some lazy system managers that want a program to do it for them automatically instead of them having to go to 200+ computers.
0
Comment
Question by:coondog091800
1 Comment
 
LVL 5

Accepted Solution

by:
alanwhincup earned 50 total points
ID: 7139292
Just do soemthing like this:

Add 'Registry' to the uses clause of the unit.

procedure TForm1.Button1Click(Sender: TObject);
var
  Reg : TRegistry;
begin
  Reg := TRegistry.Create;
  with Reg do
  begin
    RootKey := HKEY_CURRENT_USER;
    OpenKey('Software\Microsoft\Windows\CurrentVersion\Internet Settings', False);
    WriteString('AutoConfigURL', 'config address');
    Free;
  end;
end;

If you have IE open and then run the code then you won't notice a difference until the browser has been closed and re-opened.

Cheers,

Alan
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now