Sign in to follow this  
Followers 0
Agent Orange

Running http:// without calling the program

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



The easiest way to do this in the newest betas is to use ShellExecute :

ShellExecute("http://www.google.com")

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

Thanks I'll give it a try

Share this post


Link to post
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
Sign in to follow this  
Followers 0