News:

HOT TIP! Commands and groups can be copied and pasted directly from your command editor to the forum, and vice versa. This makes sharing command XML on the forum much easier!

Main Menu

VC opening websites in wrong browser

Started by Minefield, November 27, 2014, 07:01:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Minefield

Wasn't sure if anyone else had come across this.
I'm trying to get VC to auto login and start Sky Go in internet explorer, as it's less juddery than chrome, but VC keeps opening the URL in Chrome.
I've got IE set as default browser and have confirmed in the chrome settings that it isn't the default.
Im using the command Launch.OpenURL

fyi when I use the 'show help' command the page opens in IE.

nime5ter

#1
Strange behaviour indeed.

If you need to force choose the correct browser, just use the Launch action instead of Launch.OpenURL

http://voxcommando.com/forum/index.php?topic=1493.msg12977#msg12977

http://voxcommando.com/mediawiki/index.php?title=Actions#Launch
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

This may shed some light: http://superuser.com/questions/498467/why-is-my-default-browser-setting-being-ignored

There is some ambiguity about the default browser in Windows, and it probably also varies from one version of the OS to another.  It is interesting that "show help" behaves differently.  I thought that it just called the same function as Launch.OpenUrl. I will need to look at the actual source code to see why that is different.  What version of VC are you using?

Anyway, nime5ter's suggestion is probably the easiest fix for your current situation.

Minefield

Thanks, used nime5ter's suggestion and it worked perfectly.

Can't believe the speed of the reply's on this forum.  It's almost realtime.

jitterjames

Actually, I just realized that this is not strange at all.  It is exactly what I thought it was.

The LaunchURL action is opening an URL and when you click "ShowHelp" it is opening an html file from your hard drive.

So your default browser for html files is Internet Explorer and your default browser for URLs is Chrome.

To see what I mean, I think you can drag a web shortcut from your browser's address bar to your desktop.  When you double-click that link it should open in Chrome.