Sign in to follow this  
Followers 0
bobheart

open url

12 posts in this topic

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 .

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
Share on other sites

ya I was trying that and gave errors . so I just made a bat file and ran that . lol

Share this post


Link to post
Share on other sites

You can also use an autoit-only method with the shellexecute udf made by me and enhanced by ezzetabi.


Who else would I be?

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

Yep.


Who else would I be?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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 by ezzetabi

Share this post


Link to post
Share on other sites

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 ..

Share this post


Link to post
Share on other sites

ya I was trying that and gave errors . so I just made a bat file and ran that . lol

<{POST_SNAPBACK}>

Well... Good.

Share this post


Link to post
Share on other sites

And the bat file work too .:ph34r:

I have a program that compiles bat files to exe files.

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

.bat files are the bad brothers of .au3 files :ph34r:

Edited by ezzetabi

Share this post


Link to post
Share on other sites

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:

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)

Share this post


Link to post
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
Sign in to follow this  
Followers 0