Guest Jc77 Posted September 10, 2005 Share Posted September 10, 2005 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 hasa 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 isRun(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 likeRun('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 thisto will all work correctly?Thanks for any help. Link to comment Share on other sites More sharing options...
Groumphy Posted September 10, 2005 Share Posted September 10, 2005 (edited) Why not use _alias.au3 and specificly the function _Start("xxx") devlopped by SvenP combinated with _INetExplorerCapable (need INet.au3 included). Edited September 10, 2005 by Groumphy ----------------------GroumphyMore information about me [Fr] Link to comment Share on other sites More sharing options...
wiredbits Posted September 10, 2005 Share Posted September 10, 2005 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 hasa 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 isRun(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 likeRun('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 thisto will all work correctly?Thanks for any help.<{POST_SNAPBACK}>Here is one way %WinDir%\System32\Rundll32.exe Url,FileProtocolHandler www.yahoo.com Link to comment Share on other sites More sharing options...
Gaboury Posted September 10, 2005 Share Posted September 10, 2005 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) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 10, 2005 Moderators Share Posted September 10, 2005 (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 $url = "enter the url here..." Run(@Comspec & " /c start " & $url)<{POST_SNAPBACK}>These people helped you if you forgot already: @Comspec HelpEDIT: Had 2 "Quotes"? Edited September 10, 2005 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. 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