Garrett19212 Posted April 12, 2005 Posted April 12, 2005 Ok how would i do this when the program opens It opens internet explorer, automadicly goes to a specific url.
bshoenhair Posted April 12, 2005 Posted April 12, 2005 $IExplorerPath = @ProgramFilesDir & '\Internet Explorer\iexplore.exe' $WebSiteURL = 'http://www.google.com' Run($IExplorerPath & ' ' & $WebSiteURL)
mdes Posted April 13, 2005 Posted April 13, 2005 (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 April 13, 2005 by mdes Gestion des congés, RTT, vacances scolaires, autres absences sur Pocket PC : CongésRFV
MSLx Fanboy Posted April 13, 2005 Posted April 13, 2005 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())
steveR Posted April 14, 2005 Posted April 14, 2005 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.
MSLx Fanboy Posted April 14, 2005 Posted April 14, 2005 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 Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
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