bobheart Posted September 20, 2004 Posted September 20, 2004 How would you open a url with what ever the users has for a web browser ? So if they use Mozilla the link would open the url in mozilla .
emmanuel Posted September 20, 2004 Posted September 20, 2004 bobheart said: How would you open a url with what ever the users has for a web browser ? So if they use Mozilla the link would open the url in mozilla . <{POST_SNAPBACK}>use the @comspec /start, I know you've got to have examples around... it is different for 9x/ME to NT, so check the @OStype if you're not just running on one or the other. "I'm not even supposed to be here today!" -Dante (Hicks)
bobheart Posted September 20, 2004 Author Posted September 20, 2004 ya I was trying that and gave errors . so I just made a bat file and ran that . lol
this-is-me Posted September 20, 2004 Posted September 20, 2004 You can also use an autoit-only method with the shellexecute udf made by me and enhanced by ezzetabi. Who else would I be?
emmanuel Posted September 20, 2004 Posted September 20, 2004 this-is-me said: You can also use an autoit-only method with the shellexecute udf made by me and enhanced by ezzetabi. <{POST_SNAPBACK}>I keep meaning to check that out, it's in scripts and scraps, right? "I'm not even supposed to be here today!" -Dante (Hicks)
ezzetabi Posted September 20, 2004 Posted September 20, 2004 (edited) bobheart said: ya I was trying that and gave errors . so I just made a bat file and ran that . lol <{POST_SNAPBACK}>Strange! Do you mean that $url = 'http:\\www.hiddensoft.com\forum' Run(@comspec & ' /c start ' & $url,'',@sw_hide) does not work? It is very strange. It should be foolproof in every Windows version. The difference beetween 98/XP kernels is that Start manages the " differently, but urls do not needs " so it should be the same. Edit: added ,'',@sw_hide Edited September 20, 2004 by ezzetabi
bobheart Posted September 20, 2004 Author Posted September 20, 2004 ezzetabi said: Strange! Do you mean that $url = 'http:\\www.hiddensoft.com\forum' Run(@comspec & ' /c start ' & $url,'',@sw_hide) does not work? It is very strange. It should be foolproof in every Windows version. The difference beetween 98/XP kernels is that Start manages the " differently, but urls do not needs " so it should be the same. Edit: added ,'',@sw_hide <{POST_SNAPBACK}>Weeeeeeeeeeeeeeeeeeeeeeeeeeee That works ..
ezzetabi Posted September 20, 2004 Posted September 20, 2004 bobheart said: ya I was trying that and gave errors . so I just made a bat file and ran that . lol <{POST_SNAPBACK}>Well... Good.
bobheart Posted September 20, 2004 Author Posted September 20, 2004 And the bat file work too . I have a program that compiles bat files to exe files.
ezzetabi Posted September 20, 2004 Posted September 20, 2004 (edited) .bat files are the bad brothers of .au3 files Edited September 20, 2004 by ezzetabi
emmanuel Posted September 20, 2004 Posted September 20, 2004 ezzetabi said: The difference beetween 98/XP kernels is that Start manages the " differently, but urls do not needs " so it should be the same. <{POST_SNAPBACK}>not so, check out Start /? on XP/2k and you'll find that it expects a window title before the path to the command/program: start /? said: Starts a separate window to run a specified program or command. START ["title"] [/Dpath] [/MIN] [/MAX] [/sEPARATE | /SHARED] [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL] [/WAIT] [command/program] [parameters] "title" Title to display in window title bar.Just an FYI... so a bit of the old if then dance might be a good idea:$url = 'http:\\www.hiddensoft.com\forum' If @OSTYPE = "WIN32_NT" Then Run(@ComSpec & ' /c start "title" ' & $url, '', @SW_HIDE) ElseIf @OSTYPE = "WIN32_WINDOWS" Then Run(@ComSpec & ' /c start ' & $url, '', @SW_HIDE) EndIf "I'm not even supposed to be here today!" -Dante (Hicks)
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