Sign in to follow this  
Followers 0
the_lord_mephy

Default browser

7 posts in this topic

Is there a way to run/find someones default internet browser?

I checked the macros.


My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]

Share this post


Link to post
Share on other sites



It might help if you search the forum for "default browser".


Who else would I be?

Share this post


Link to post
Share on other sites

Or search for default file association. I think it was Larry that made a script that gets the default association for any registered file type.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Or search for default file association. I think it was Larry that made a script that gets the default association for any registered file type.

*** Matt @ MPCS

<{POST_SNAPBACK}>

UDF

Perhaps, he only requires the path founded in the registry. (I believe)

$defaultBrowser = StringSplit(RegRead("HKEY_CLASSES_ROOT\http\shell\open\command", ""), " ")
Run($defaultBrowser[1] & " http://www.autoit3.com/")
Edited by josbe

Share this post


Link to post
Share on other sites

That's what I was talking about, thanks Josbe!

*** Matt @ MPCS

Share this post


Link to post
Share on other sites

Why not use DllCall?

DllCall("shell32.dll", "long", "ShellExecute", "hwnd", 0, "string", "", "string", "http://www.autoit3.com/", "string", "", "string", "", "long", @SW_SHOWNORMAL)

Thanks to this post.

Kendall

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Sorry, I searched the Manual for default browser and nothing came up, searching the forum didn't cross my mind for some reason.

Edit and I don't want to even try DLL calling yet, josbe. yours works beautifully.

Edited by the_lord_mephy

My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]

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