Agent Orange Posted October 10, 2006 Share Posted October 10, 2006 Is there a way to launch a website url within an Autoit script but not call the .exe for the browser?I'd like it to be set so the script will launch whatever the users default web browser is. So if it is Firefox....Firefox will be used to run to display the site....if IE is the default, IE will be used. It works using the Run command but only when I hard code in the exe. Example: Run("C:\Program Files\Internet Explorer\iexplore.exe" & " http://www.microsoft.com")Is this possible? Link to comment Share on other sites More sharing options...
Helge Posted October 10, 2006 Share Posted October 10, 2006 The easiest way to do this in the newest betas is to use ShellExecute :ShellExecute("http://www.google.com") Link to comment Share on other sites More sharing options...
Valuater Posted October 10, 2006 Share Posted October 10, 2006 (edited) maybe... $web_loc = "http://www.autoitscript.com" Run(@ComSpec & " /c Start " & $web_loc, "", @SW_HIDE) 8) late and not quite as good also Edited October 10, 2006 by Valuater Link to comment Share on other sites More sharing options...
Agent Orange Posted October 10, 2006 Author Share Posted October 10, 2006 Thanks I'll give it a try 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