silvercover Posted October 22, 2005 Share Posted October 22, 2005 Hi, How can I find out which browser is default browser? thanks The more I learn the less I know! Link to comment Share on other sites More sharing options...
BigDod Posted October 22, 2005 Share Posted October 22, 2005 Hi,How can I find out which browser is default browser?thanks This might help.HKEY_CLASSES_ROOT\http\shell\open\command Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Confuzzled Posted October 23, 2005 Share Posted October 23, 2005 $Internet_Browser_Name = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\htmlfile\shell\open\command", "") Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 23, 2005 Moderators Share Posted October 23, 2005 (edited) Well since we're all showing different ways:$URL = "http://www.mysite.com" DllCall("shell32.dll", "long", "ShellExecute", "hwnd", 0, "string", 'open', "string", $URL, "string", '', "string", @ScriptDir, "long", @SW_SHOWNORMAL)Edit: Of course if I bothered to reade the title of this post before I posted, I would of seen you were looking for the specific Registry key... oops Edited October 23, 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...
Valik Posted October 23, 2005 Share Posted October 23, 2005 $Internet_Browser_Name = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\htmlfile\shell\open\command", "")There is no guarantee that the ProgID used by HTML files will actually be "htmlfile". In fact, the ProgID on my machine is "FirefoxHTML". If I ran your snippet on my machine, I would get the wrong results back since the values contained in the htmlfile sub-key are irrelevant to what the real settings on my system are. Link to comment Share on other sites More sharing options...
/dev/null Posted October 23, 2005 Share Posted October 23, 2005 This might help.HKEY_CLASSES_ROOT\http\shell\open\commandPlus:HKEY_CLASSES_ROOT\https\shell\open\commandHKEY_CLASSES_ROOT\ftp\shell\open\commandHKEY_CLASSES_ROOT\gopher\shell\open\command !! I like this one :-)HKEY_CLASSES_ROOT\htmlfile\shell\open\commandHKEY_CLASSES_ROOT\FirefoxHTML\shell\open\commandand maybe some more.... Unfortunately there is no single entry for the "default browser". It all depends on which protocol or file extension you are going to use/access.CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * 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