BlueScreen Posted April 14, 2005 Share Posted April 14, 2005 I don't wanna be able to open a web page (like www.autoitscript.com) using the default browser. Is there a way? 10x Link to comment Share on other sites More sharing options...
Just_Plain_Cool Posted April 14, 2005 Share Posted April 14, 2005 I don't wanna be able to open a web page (like www.autoitscript.com) using the default browser. Is there a way?10x<{POST_SNAPBACK}>Use the forum's search feature and search for "Default Browser". The information is there as this has been covered before...Hope this helps,JPC Link to comment Share on other sites More sharing options...
w0uter Posted April 14, 2005 Share Posted April 14, 2005 (edited) $o_URL = ObjCreate("Shell.Application") $o_URL.Open($s_URL)http://www.autoitscript.com/fileman/users/jpm/AutoIt3-gui/ Edited April 14, 2005 by w0uter krasnoshtan 1 My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
buzz44 Posted April 14, 2005 Share Posted April 14, 2005 (edited) $Url = "http://www.autoitscript.com/forum/index.php?" $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) From the topic mentioned above. Edited April 14, 2005 by Burrup qq Link to comment Share on other sites More sharing options...
w0uter Posted April 14, 2005 Share Posted April 14, 2005 burrup he sayd default. he sayd nothing about iexplorer. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
buzz44 Posted April 14, 2005 Share Posted April 14, 2005 (edited) Whoops my bad. Sorry I was supposed it modifiy it. Try this. $Url = "http://www.autoitscript.com/forum/index.php?" $OpenUrl = RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\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) Edited May 7, 2005 by Burrup qq Link to comment Share on other sites More sharing options...
BlueScreen Posted April 14, 2005 Author Share Posted April 14, 2005 Thanks, Guys, for all your replies. I have finally used: RunWait(@ComSpec & " /c " & "start http://www.blablabla.com", "", @SW_MAXIMIZE). This is doing the job, but when there is a URL such as: www.blabla&bla, it doesn't work. I still wanna use Comspec. Any idea how to overcome this limitation? Link to comment Share on other sites More sharing options...
buzz44 Posted April 14, 2005 Share Posted April 14, 2005 $Url = "http://www.autoitscript.com/forum/index.php?" RunWait(@ComSpec & " /c start " & $Url) ? I'm not sure what you mean by www.blablabla.com, do you mean it doesnt work when it doesnt have "http://" infront of it? qq Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted April 14, 2005 Share Posted April 14, 2005 I don't believe it will work without the "http://" because it doesn't know what protocol is going to be used, which means it doesn't know the default app to use, since it doesn't know the protocol... Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
buzz44 Posted April 15, 2005 Share Posted April 15, 2005 Well I just used my above example without the "http://" and it works fine. qq Link to comment Share on other sites More sharing options...
torsti Posted April 15, 2005 Share Posted April 15, 2005 Thanks, Guys, for all your replies. I have finally used:RunWait(@ComSpec & " /c " & "start http://www.blablabla.com", "", @SW_MAXIMIZE).<{POST_SNAPBACK}>i think you can RunWait("http://xxxx") directly Link to comment Share on other sites More sharing options...
w0uter Posted April 15, 2005 Share Posted April 15, 2005 run can only run like .exe .bat .cmd and so on My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
de9d Posted December 5, 2023 Share Posted December 5, 2023 On 4/14/2005 at 7:29 PM, BlueScreen said: Thanks, Guys, for all your replies. I have finally used: RunWait(@ComSpec & " /c " & "start http://www.blablabla.com", "", @SW_MAXIMIZE). This is doing the job, but when there is a URL such as: www.blabla&bla, it doesn't work. I still wanna use Comspec. Any idea how to overcome this limitation? To those who may still look for solution) You must escape "&" with "^" char. RunWait(@ComSpec & " /c " & "start http://www.blablabla^&bla.com", "", @SW_MAXIMIZE) Link to comment Share on other sites More sharing options...
Developers Jos Posted December 5, 2023 Developers Share Posted December 5, 2023 There is no & in the URL so have no idea what you are on about 18 years after this topic was created? Care to explain? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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