Sign in to follow this  
Followers 0
Guest Jc77

Best way to open Internet Explorer

5 posts in this topic

Hi All.

I would like to know the safest way to launch IE in is.

I will have multiple machines that I will distribute my script to. Each has

a different windows version and hard drive configurations.

I've seen several different ways to launch IE with a URL in it.

The easiest way I've seen is

Run(iexplore.exe http://www.website.com)

But I've also seen some more complex Run() syntax using @Comspec and

@ProgramsDir.

I've also seen the full directory called like

Run('Program Files\Internet Explorer\iexplore.exe')

Some machines might not have this path so I don't to write it this way.

I want to open a new and maximized window in IE pointing to a URL.

What is the best syntax to use so the machines I distribute this

to will all work correctly?

Thanks for any help.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Why not use _alias.au3 and specificly the function _Start("xxx") devlopped by SvenP combinated with _INetExplorerCapable (need INet.au3 included).

;)

Edited by Groumphy

----------------------GroumphyMore information about me [Fr]

Share this post


Link to post
Share on other sites

Hi All.

I would like to know the safest way to launch IE in is.

I will have multiple machines that I will distribute my script to. Each has

a different windows version and hard drive configurations.

I've seen several different ways to launch IE with a URL in it.

The easiest way I've seen is

Run(iexplore.exe http://www.website.com)

But I've also seen some more complex Run() syntax using @Comspec and

@ProgramsDir.

I've also seen the full directory called like

Run('Program Files\Internet Explorer\iexplore.exe')

Some machines might not have this path so I don't to write it this way.

I want to open a new and maximized window in IE pointing to a URL.

What is the best syntax to use so the machines I distribute this

to will all work correctly?

Thanks for any help.

<{POST_SNAPBACK}>

Here is one way %WinDir%\System32\Rundll32.exe Url,FileProtocolHandler www.yahoo.com

Share this post


Link to post
Share on other sites

Why not using the default browser? It will work on all computers, either they have ie, firefox, netscape, avantgo etc...

Here's the code... I don't remember who gave it to me but I am thankful to that person, it helped my program greatly ;)

$url = "enter the url here..."
Run(@Comspec & " /c start " & $url)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Why not using the default browser?  It will work on all computers, either they have ie, firefox, netscape, avantgo etc...

Here's the code...  I don't remember who gave it to me but I am thankful to that person, it helped my program greatly :P

$url = "enter the url here..."
Run(@Comspec & " /c start " & $url)

<{POST_SNAPBACK}>

These people helped you if you forgot already: @Comspec Help

EDIT: Had 2 "Quotes"? ;)

Edited by ronsrules

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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