Jump to content
Sign in to follow this  
Agent Orange

Running http:// without calling the program

Recommended Posts

Agent Orange

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
Helge

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
Valuater

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.