t0ddie Posted May 30, 2005 Share Posted May 30, 2005 i forgot the @comspec command that you can use to launch a website on the default browser. bah! Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 30, 2005 Moderators Share Posted May 30, 2005 $URL = "" Run(@ComSpec & " /c Start " & $Url, "", @SW_HIDE) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
w0uter Posted May 30, 2005 Share Posted May 30, 2005 i forgot the @comspec command that you can use to launch a website on the default browser.bah!<{POST_SNAPBACK}>you mean "start"if you got com support (beta) you could also use:$o_shell = ObjCreate('Shell.Application') $o_shell.Open($URL) 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...
t0ddie Posted May 30, 2005 Author Share Posted May 30, 2005 excellent. and this works on all windows versions? Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 30, 2005 Moderators Share Posted May 30, 2005 Hmmm, are you saying: Run(@ComSpec & " Start " & $Url, "", @SW_HIDE) Not: Run(@ComSpec & " /c Start " & $Url, "", @SW_HIDE) ? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
w0uter Posted May 30, 2005 Share Posted May 30, 2005 Hmmm, are you saying:Run(@ComSpec & " Start " & $Url, "", @SW_HIDE)Not:Run(@ComSpec & " /c Start " & $Url, "", @SW_HIDE)?<{POST_SNAPBACK}>who are you talking too ? anyways the "/c" one is the correct one. 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...
t0ddie Posted May 30, 2005 Author Share Posted May 30, 2005 well, either way seems to work. but actually windows command processor is what launches the url also.. i tried your code, and just realized that you put @sw_hide but when i ran it, the window was not hidden. is there a way to launch it using the users default browser? Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
w0uter Posted May 30, 2005 Share Posted May 30, 2005 both mine and rons will open it in the def brouwser 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...
Moderators SmOke_N Posted May 30, 2005 Moderators Share Posted May 30, 2005 Ha, wOuter... No I posted, and saw your "Start", and was saying hmmm was he talking to me? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
t0ddie Posted May 30, 2005 Author Share Posted May 30, 2005 (edited) my firewall says windows command processor not firefox.exe and i have 2 browsers, but my default one is firefox. and this command opens the window with IE also.. why isnt the window hiding? lol Edited May 30, 2005 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 30, 2005 Moderators Share Posted May 30, 2005 (edited) lol, it's hiding the command processor.Try it like this and you'll see: Run(@ComSpec & " /c Start " & $Url, "")Edit: FireFox is my main browser also, and it opens it. Are you sure it's set to default? Edited May 30, 2005 by ronsrules Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
t0ddie Posted May 30, 2005 Author Share Posted May 30, 2005 (edited) pretty much im looking for a behind the scenes way to emulate this... ClipPut("http://play.games.com/playgames/home.jsp") Send("{LWINDOWN}") Send("r") Send("{LWINUP}") Send("{CTRLDOWN}") Send("v") Send("{CTRLUP}") Send("{ENTER}") the clipboard part isnt neccissary you know, open the default browser... without that other crap. and without using the run prompt WELL SON OF A BITCH my run box opens IE thats not right!!!! i forgot how to change the default browser.... i need to do that!!!!!!!! reminder?? lol Edited May 30, 2005 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 30, 2005 Moderators Share Posted May 30, 2005 Easiest way is in your FireFox browser, Tools / Internet Options, you'll see a check box for "Default Browser" I believe. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
t0ddie Posted May 30, 2005 Author Share Posted May 30, 2005 ty. works now. but how would i open the default browser, without using the command thing? is there a way? Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 31, 2005 Moderators Share Posted May 31, 2005 I believe Burrup did this a while back, but I have had users say it doesn't work on certain systems. $Url = "http://www." $OpenUrl = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\command", "") $PosParam = StringInStr($OpenUrl, "%") $OpenUrlLeft = StringLeft($OpenUrl, $PosParam - 1) $OpenUrlRight = StringMid($OpenUrl, $PosParam + 2, 999) Run($OpenUrlLeft & $Url & $OpenUrlRight) Hope it helps!! Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
t0ddie Posted June 1, 2005 Author Share Posted June 1, 2005 works great on my computer! although it does not open a new window.. if you have one open already.. it will change the page you are on. it would be nice to open a new window. and it would be nice to make this work on all windows versions! this is exactly what i was looking for, but its still not perfect, and thats what i need. any suggestions? Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
w0uter Posted June 1, 2005 Share Posted June 1, 2005 $o_shell = ObjCreate('Shell.Application') $o_shell.Open($URL)<{POST_SNAPBACK}> 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...
t0ddie Posted June 1, 2005 Author Share Posted June 1, 2005 i dont get how to use that.. ? Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 1, 2005 Moderators Share Posted June 1, 2005 i dont get how to use that.. ?<{POST_SNAPBACK}>$Url = "" $o_shell = ObjCreate('Shell.Application') $o_shell.Open($URL)Then use Beta Run in SciTe I believe. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
t0ddie Posted June 2, 2005 Author Share Posted June 2, 2005 this solution works best for me. $Url = "http://www.com" $OpenUrl = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\https\shell\open\command", "") $PosParam = StringInStr($OpenUrl, "%") $OpenUrlLeft = StringLeft($OpenUrl, $PosParam - 1) $OpenUrlRight = StringMid($OpenUrl, $PosParam + 2, 999) Run($OpenUrlLeft & $Url & $OpenUrlRight) can you tell me what windows versions this wont work on? is there another way to do this on those versions? Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. 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