Sign in to follow this  
Followers 0
Garrett19212

Open IE and go to site

7 posts in this topic

Ok how would i do this when the program opens

It opens internet explorer, automadicly goes to a specific url.

Share this post


Link to post
Share on other sites



$IExplorerPath = @ProgramFilesDir & '\Internet Explorer\iexplore.exe'
$WebSiteURL = 'http://www.google.com'
Run($IExplorerPath & ' ' & $WebSiteURL)

Share this post


Link to post
Share on other sites

Alright thanks ill try it out.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

$OpenUrl      = RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\iexplore.exe\shell\open\command", ""); Get the Internet browser path
$PosParam     = StringInStr ($OpenUrl, "%")            ; Parameter location (%l)
$OpenUrlLeft  = StringLeft  ($OpenUrl, $PosParam-1)    ; Left handside of the path
$OpenUrlRight = StringMid   ($OpenUrl, $PosParam+2,999); Right handside of the path
Run ($OpenUrlLeft & $url & $OpenUrlRight)
And better will be to RegRead the program associated with .html extension...

Edited by mdes

Gestion des congés, RTT, vacances scolaires, autres absences sur Pocket PC : CongésRFV

Share this post


Link to post
Share on other sites

start http://www.google.com

from the command line opens the default browser (for some, Firefox might be default browser). Just look for the Run(@Comspec... thing in the help file, and it will be very easy, don't forget the space!


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

Share this post


Link to post
Share on other sites

There was a topic on this not too long ago that gave about 20 examples on how to do this. A search beforehand might have saved some time.


AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.

Share this post


Link to post
Share on other sites

Meh, you know how it is, create hundreds of topics on the same thing to impress people just finding the site :) Happens on nearly every forum :D


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

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