| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Fri Oct 12, 2007 9:16 pm Post subject: Default Browser |
|
|
I did some searching on this here (and other places) and couldn't find much help. I am making a browser and I want to set it as the default browser. Anyone know how I can do this? I also want to make sure that if a link is clicked on a web page that is a popup, it opens my app and not Internet Explorer.
Thanks _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sat Oct 13, 2007 1:23 am Post subject: |
|
|
I believe for you to do this, you will have to associate your app with as many web based file extensions (html, htm, asp, asx, php...etc) and mime http and https.
I don't think there is, for lack of a better term, a single switch or command that will set this for you.
Good Luck
Aslan |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sat Oct 13, 2007 1:40 am Post subject: |
|
|
This info might be of use to you.
| Quote: | Start the registry editor (regedit.exe)
Move to HKEY_CLASSES_ROOT\http
Expand the tree and move to HKEY_CLASSES_ROOT\http\shell\open\command, double click on default and set the string to the command you wish to run for Internet addresses, for example "E:\Program Files\Internet Explorer\iexplore.exe" -nohome for Internet Explorer.
Click OK
Move to HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Application, and again double click Default, change to the browser, IExplore for Internet Explorer.
You may also want to change the icon associated, move to HKEY_CLASSES_ROOT\http\DefaultIcon, (do I need to say) double click Default and set to the icon %SystemRoot%\system32\url.dll,0 Internet Explorer
You should repeat the above for https as well, i.e. HKEY_CLASSES_ROOT\https\shell\open\command etc.
|
Ref: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1765109&SiteID=1 |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Sat Oct 13, 2007 1:52 am Post subject: |
|
|
I'll have to play around with this. Sounds like a pain, but if I can get it down, shouldn't be too bad. Would be nice if it was explained in full somewhere to make it less of a headache.
Thanks a lot. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Sat Oct 13, 2007 2:57 am Post subject: |
|
|
Well, I can get it to set default, but when I click on a link that is a popup window, it still opens in IE. I am using VDSBrw50.dll for the browser element, since it uses the internet explorer engine is that why it just keeps using IE for popups? I really need it to open in my app. Any more ideas?
Thanks _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Oct 16, 2007 1:43 am Post subject: |
|
|
LiquidCode,
The VDS Browser element is Internet Explorer. There is an event that the browser control fires when you click on a link. You have to trap that event and respond in a special way to tell the browser control to open popup windows in a different manner than it's default which is to open Internet Explorer as an Application. Another thing you could do is update the HTML with a little javascript to keep popups in your own window. I think I have some around here somewhere. I will look and let you know. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Oct 16, 2007 2:06 am Post subject: |
|
|
That would be great! I would be able to use the script on all sites, not just ones that I make?
Thanks a lot! _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
|