Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Detecting default browser?

Author
Message
enderleit
19
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 22nd Jun 2010 05:05
Hey guys...

Couldn't find anything by searching the forum or on google, so here it goes...

Is there anyway to detect the default browser in a dbpro program and then launch it with a provided link?

- enderleit
[href]www.eleit.dk[/href]
tgm4l
18
Years of Service
User Offline
Joined: 21st Oct 2007
Location:
Posted: 22nd Jun 2010 05:51
"Default Web browser settings is stored in registry and you can find the registry entry for your default browser at
HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInter net\
Default value indicate the default web browser."

-http://www.go4expert.com/forums/showthread.php?t=177

Sorry if that's no help to you.

Though, most windows machines have IE, although it sucks, it's still a standard for programmers.
Don Malone
23
Years of Service
User Offline
Joined: 27th Apr 2003
Location: Birmingham, Alabama
Posted: 22nd Jun 2010 06:09
If you try to open an HTML link, it should open the default browser without you having to know what it is. Are you doing something that is browser specific?

Don Malone
enderleit
19
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 23rd Jun 2010 08:22
I'm just working on a kind of MindMapping program, and you will be able to add Text, Images, and Links to help further your ideas...

So I want people to be able to click on a link, and the it is launched in their default browser...

- enderleit
[href]www.eleit.dk[/href]
Dark onyx
19
Years of Service
User Offline
Joined: 8th May 2007
Location: Um... I kinda forgot it
Posted: 23rd Jun 2010 16:34
That is why it's called the default browser. Any links you click will be opened with that specific browser, unless the software tells Windows otherwise. So, you don't have to know such things. Just request Windows to open the link and then rest is automatic.
Or did you want that information for something else?

"I reject the reality and substitue my own"
- Adam Savage
AMD Phenom 2 X4 3 GHZ, 4 GB RAM, Geforce 8800 GT Pre Alpha Dog Edition 512 MB, Win 7 Ultimate
enderleit
19
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 25th Jun 2010 09:00
Seems to be a bit of a misunderstanding here...

They only way I know of launching a webpage from my program is by using the command "Execute File" which requires me to specify an executable, which means that I have to specify either iexplore.exe or chrome.exe, or some other browser exe...

So how do I open a link without having to specify the browsers executable?

- enderleit
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 25th Jun 2010 17:40 Edited at: 25th Jun 2010 17:43
It doesn't have to be an .exe file with EXECUTE FILE.



spooky
23
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 25th Jun 2010 23:47
It will even load remote web pages in default browser;



Yes, so basically, it will load up the default program for the given extension, so;



will load up readme.txt in notepad (if notepad is your default editor for .txt files). No having to work out what the default editor is.

Boo!
enderleit
19
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 26th Jun 2010 01:18
Aaaaaaahhh! Now I get it...
Thanks alot for the help everyone.

Sorry for being so dense...

- enderleit

Login to post a reply

Server time is: 2026-07-25 08:29:55
Your offset time is: 2026-07-25 08:29:55