computergroove Posted March 26, 2012 Share Posted March 26, 2012 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 More sharing options...
JohnOne Posted March 26, 2012 Share Posted March 26, 2012 Try $sIEPath = "C:\Program Files\Internet Explorer\Iexplore.exe" Run($sIEPath) It's also wise to explain what actually is wrong. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now