Jump to content

Recommended Posts

Posted

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]
Posted

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

Posted (edited)

  Matt @ MPCS said:

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
Posted

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

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]

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...