Author Topic: VC opening websites in wrong browser  (Read 1908 times)

0 Members and 1 Guest are viewing this topic.

Minefield

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
VC opening websites in wrong browser
« on: November 27, 2014, 07:01:06 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: VC opening websites in wrong browser
« Reply #1 on: November 27, 2014, 07:05:50 PM »
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
« Last Edit: December 06, 2014, 10:08:47 AM by nime5ter »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: VC opening websites in wrong browser
« Reply #2 on: November 27, 2014, 07:16:01 PM »
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

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Re: VC opening websites in wrong browser
« Reply #3 on: November 27, 2014, 07:30:00 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: VC opening websites in wrong browser
« Reply #4 on: November 28, 2014, 04:55:41 PM »
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.