Author Topic: Command line opening browser  (Read 7455 times)

Durntdude

  • Posts: 5
Command line opening browser
« on: May 22, 2016, 09:26:42 PM »
Since I am unable to find a way to have a default profile (if no other profiles are active then select this one) so I was going to set up my own way of doing so. The bug I am facing is with the command line parameters for Voiceattack. If I run the exe as such:

"C:\Program Files (x86)\VoiceAttack\VoiceAttack.exe" -profile "base profile"

then the profile switches properly (yay) but it also opens up a copy of firefox (default browser) and loads the home page. Any idea on what could cause this behavior?

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Command line opening browser
« Reply #1 on: May 22, 2016, 10:59:34 PM »
First up, make sure you get the beta:  http://www.voiceattack.com/beta,
as the release version has a bug pertaining to the command line parameters that are for commands or profiles.

Not even remotely sure on why Firefox would open with VoiceAttack unless the profile has a command that is executed on startup (see profile options screen which is accessible from the top of the profile edit screen).

Durntdude

  • Posts: 5
Re: Command line opening browser
« Reply #2 on: May 22, 2016, 11:24:33 PM »
I do have a voice command to open firefox but I don't have any profile's set to do anything on switch. When i was testing to make sure profile swaps worked I had it announce the profile it was in but that is it. I'll try the beta and see.

Durntdude

  • Posts: 5
Re: Command line opening browser
« Reply #3 on: May 22, 2016, 11:34:49 PM »
Alrighty, so after installing the beta (and losing all my profiles for some reason  :( ) the command launch options are properly switching profiles and not opening up firefox. Losing the profiles is minor, I only had 3 at the moment and they will be quick to add back.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: Command line opening browser
« Reply #4 on: May 22, 2016, 11:37:51 PM »
You should never lose your profiles.  They are kept in a separate location that the installer has no idea about.  Did you install under a different user account?

Durntdude

  • Posts: 5
Re: Command line opening browser
« Reply #5 on: May 23, 2016, 01:16:50 AM »
Sorry for the delay on response. I was working on the profile switching.

I actually did not lose the profiles. The actual progress of events was:
1) installed beta
2) registered key
3) testing command lines parameters to see if they worked (at this point there were no profiles)
4) started working on the profile switching with new profiles as there weren't any.
5) while working with the scripting I was having issues with VoiceAttack not swapping profiles so I closed and re-opened it.
6) after closing and re-opening it (for the first time since registration) the profiles re-appeared.

It appears for that Voiceattack has to be closed/re-opened after registration before profiles are listed again. All appears to be working 100% now