Author Topic: Voice Attack Switches Windows Back to Itself Whenever a Command in Preformed  (Read 6442 times)

smallkitten

  • Posts: 3
I just want to say that I think what you are doing here with this program is fantastic. It really is the most powerful voice recognition software that I have found to date and it really lends itself to building profiles only limited by one's imagination.

So, I am trying to use Voice Attack in sort of an unorthodox way. I am developing a smart home system based around a Windows 10 computer and a microphone in my kitchen. Voice Attack is the cornerstone of my setup. It needs to launch programs, do mouse movements to click and enter things, and type phrases into text areas. I have started to play around with making some custom commands, but I keep running into the same problem.

Let's say that I have a command that is supposed to open Google Chrome, click on the search bar, and type something in. What seems to happen is that the mouse will click on the text area and open it up for typing. But as soon as the next thing in Voice Attack happens, I.E. set a value to the windows clipboard and paste it into the text box, Windows switches to the Voice Attack window and deselects the other window.

The best way that I can explain this is in simple terms. Previously the Chrome window was selected, meaning that on the taskbar the icon for Chrome was highlighted. However, when Voice Attack seems to perform any other command after that, Voice Attack is highlighted. This means that text boxes unselected and any attempt to do "Control+V" is in vain. Even pressing "Control+V" when the box is selected causes a switch.

Sorry for all of the words, I had a lot to say! :} Any help is appreciated, this is an important part of what I am doing.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Thanks for the encouragement, smallkitten!

Have you tried the beta?  There's more target handling in there than in the release version.  Also, I know that Chrome has some focusing issues if you run it and try to get it's handle.  From what I recall, it has a launcher that spawns a second process.  You would have to get the handle of the spawned window using the, 'perform window function' / display feature.  I can probably help more on this later today or this week if needed.

http://www.voiceattack.com/beta

smallkitten

  • Posts: 3
No problem, I really do love this program. Thanks for the quick reply.

I will try the beta now and let you know. I was just using Chrome as an example, this seems to persist with all other programs as well.

I have used the "Window Function" to try to target the window that I am using, but the next command draws the focus back to Voice Attack like I described. Am I missing something? What does the "Send Commands to: Active Window" do? Am I supposed to be using this?

Also, if I have a key, can I use it on multiple instances of Voice Attack on different computers?

smallkitten

  • Posts: 3
Well, I guess I should have waited to reply before I had tested the beta!

It seemed to have fixed it! Voice Attack stays deselected as when commands are running. It appears that my one test command works so I will move on and let you know if the problem persists.

On the topic of Chrome, do you know how to target Chrome for "Window Functions?" I will need to use Chrome for some of the things that I am doing.

Thanks, for all of your help. I can move forward with the project now!