Author Topic: Closing a program via voice command  (Read 4994 times)

Delta1

  • Guest
Closing a program via voice command
« on: January 05, 2019, 08:20:22 AM »
I'm new to Voice Attack.
I have successfully opened a program (Open Office) using voice command on my Win 10 machine.
How do I close it? I can't figure that one out.
Thanks.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Closing a program via voice command
« Reply #1 on: January 05, 2019, 11:50:14 AM »
Natively you have two methods at your disposal:

The "Close Window" option of the "Perform a Window Function" action, to close the main window of the application.

The "Stop a Process by Name" action(below the "Run an Application" action in the menu tree), to directly stop the process.

Delta1

  • Guest
Re: Closing a program via voice command
« Reply #2 on: January 05, 2019, 01:26:07 PM »
I have tried both ways, still no joy.
It looks like the command can't find the "target". I've tried all the combinations I can think of.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Closing a program via voice command
« Reply #3 on: January 05, 2019, 02:12:54 PM »
Which process did you select for the "Stop a Process by Name" action?

Delta1

  • Guest
Re: Closing a program via voice command
« Reply #4 on: January 05, 2019, 05:33:16 PM »
C:\\Program Files (x86) \OpenOffice 4\program\soffice.exe
It was not in the drop down list. I had to type it in.
I know the (soffice) looks like a typo but it is not, I checked in my program files.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Closing a program via voice command
« Reply #5 on: January 05, 2019, 07:36:43 PM »
"Stop a Process by Name" expects a process name, not a path to an executable.

Are you sure "soffice" is not present in the list? Is "soffice.bin"?


Do you see the application in the task manager? Does it have multiple child processes?

iceblast

  • Sr. Member
  • ****
  • Posts: 372
Re: Closing a program via voice command
« Reply #6 on: January 05, 2019, 10:06:44 PM »
How about ALT+F4, that works with most things.

Or

Code: [Select]
Close '{WINDOWPROCESSUNDERMOUSE}' process

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Closing a program via voice command
« Reply #7 on: January 05, 2019, 10:44:43 PM »
Code: [Select]
Close '{WINDOWPROCESSUNDERMOUSE}' process
That's also a possible way of finding out the process name:
Code: [Select]
Write [Blue] '{WINDOWPROCESSUNDERMOUSE}' to log

Delta1

  • Guest
Re: Closing a program via voice command
« Reply #8 on: January 06, 2019, 07:24:24 AM »
New day, fresh start, much joy !
In "windows" "stop a process" -- "soffice" finally showed up in the list after a re-start.
In "Edit a command" "Send command to this target" I was entering "Open Office" I changed this to "soffice" and VA stated it stopped the process but did not close the window. (so far so good)...

I went back to "windows" "Stop a process" and checked the list again and found soffice.bin had been added (?)
I selected soffice.bin in this window.
In "Send command to this target" I left "soffice" as the target. IT WORKED..
Now using the voice command "Close Open Office"  The window and program shut down.

Many thanks for your time and trouble. I can't begin to tell you how happy I am with this program. I tried four voice programs prior to VA, none of them worked satisfactory.
Delt1




Delta1

  • Guest
Re: Closing a program via voice command
« Reply #9 on: January 06, 2019, 08:00:35 AM »
This should be noted.......
I just did the same procedure to my Microsoft Flight Simulator X program.
When I looked for this program in "stop a process" it was not listed. I typed it in manually and it did not work.
When I went back to check the "stop the process" list I found that VA HAD ADDED "fsx"  It was not there before, nothing was listed beginning with a "f"
I selected the "fsx" and the program worked fine.

Again, I'm super happy with VA...
Delta1

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Closing a program via voice command
« Reply #10 on: January 06, 2019, 11:04:34 AM »
On my machine, any running process appears as soon as I click the button to expand the dropdown in the "Stop a Process by Name" dialog, even if the dialog was already open before the process was started.

Does it not do so for you?

Delta1

  • Guest
Re: Closing a program via voice command
« Reply #11 on: January 06, 2019, 03:30:03 PM »
Does the process HAVE to be running when I do the set up. I may have been doing the set up in anticipation of running the program (?)

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Closing a program via voice command
« Reply #12 on: January 06, 2019, 03:37:39 PM »
Yes. It's a list of *running* processes.

You can't just make a list of every possible application your computer could be running at any given time.

Delta1

  • Guest
Re: Closing a program via voice command
« Reply #13 on: January 06, 2019, 04:03:16 PM »
I better pay more attention to the absolute meaning of the words...
Thanks,
Delta1