Jump to content
Sign in to follow this  
Garrett19212

Open IE and go to site

Recommended Posts

Garrett19212

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
bshoenhair

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

Share this post


Link to post
Share on other sites
Garrett19212

Alright thanks ill try it out.

Share this post


Link to post
Share on other sites
mdes

$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
MSLx Fanboy

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
steveR

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
MSLx Fanboy

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  

×