Vindicator209 Posted November 20, 2007 Share Posted November 20, 2007 How can I find the name / path to a person's default browser? I'm having people complain about how my programs only opens IE. Thanks [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
JustinReno Posted November 20, 2007 Share Posted November 20, 2007 (edited) It's probably somewhere in the registry, I'll Google it. Edit: Look around on this, maybe you coulde change the value: HKEY_CLASSES_ROOT\htmlfile\shell\open\command Edited November 20, 2007 by JustinReno Link to comment Share on other sites More sharing options...
Vindicator209 Posted November 20, 2007 Author Share Posted November 20, 2007 I'm googleing it right now and i keep getting something about netscape, the closest I got was the start up menu one, but that doesn't help, heh. [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
GEOSoft Posted November 20, 2007 Share Posted November 20, 2007 HKEY_CLASSES_ROOT\htmlfile\shell\open\command George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Vindicator209 Posted November 20, 2007 Author Share Posted November 20, 2007 Ahh, I found something nifty in the autoupdateit.au3 file in your directory: Func _Start($s_StartPath) If @OSTYPE = 'WIN32_NT' Then $s_StartStr = @ComSpec & ' /c start "" ' Else $s_StartStr = @ComSpec & ' /c start ' EndIf Run(@ComSpec & ' /c start ' & $s_StartPath, '', @SW_HIDE) EndFunc Works like a charm, thanks guys though [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
GEOSoft Posted November 20, 2007 Share Posted November 20, 2007 Ahh, I found something nifty in the autoupdateit.au3 file in your directory: Func _Start($s_StartPath) If @OSTYPE = 'WIN32_NT' Then $s_StartStr = @ComSpec & ' /c start "" ' Else $s_StartStr = @ComSpec & ' /c start ' EndIf Run(@ComSpec & ' /c start ' & $s_StartPath, '', @SW_HIDE) EndFunc Works like a charm, thanks guys thoughWhat method are you using to get $s_Startpath? The registry key I gave you contains the path to the default browser. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
Vindicator209 Posted November 20, 2007 Author Share Posted November 20, 2007 (edited) $s_Startpath is the URL, I don't know how the function works, but it works oh and thanks Edited November 20, 2007 by MethodZero [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
GEOSoft Posted November 20, 2007 Share Posted November 20, 2007 $s_Startpath is the URL, I don't know how the function works, but it worksoh and thanksIf $s_Startpath is a URL then yes, it will use the default browser to open it. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
therks Posted November 20, 2007 Share Posted November 20, 2007 Use ShellExecute("http://.....") and it should do about the same thing. I wrote that _Start() function before ShellExecute() was built-in. My AutoIt Stuff | My Github 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