Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Set IE Proxy settings

Posted on 2002-07-08
1
264 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

808 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