Jump to content

Colsing Iexplore.exe and reopening it for a proxy change


Recommended Posts

I am trying to get IExplore,exe to close if it is open and then reopen it after it closes to make a registry proxy change take effect. here is what I have but I must be missing something.

If ProcessExists("Iexplore.exe") Then
        ProcessClose("Iexplore.exe")
        Sleep(3000) ; Wait for IE to close
        Run("Iexplore.exe", "C:\Program Files\Internet Explorer\")
     ProcessWait("Iexplore.exe")
        Sleep(5000)
    Else
        Run("Iexplore.exe", "C:\Program Files\Internet Explorer\")
        MsgBox(0,'', "Line 53 Run Iexplore")
        ProcessWait("Iexplore.exe")
        Sleep(5000)
EndIf

Suggestions?

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Link to comment
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
 Share

  • Recently Browsing   0 members

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