Jump to content

Open IE and go to site

Recommended Posts

$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

Link to comment
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())
Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...