![]() |
KnowBrainer Speech Recognition | ![]() |


|
Topic Title: Writing commands Topic Summary: Questions about writing custom commands Created On: 08/14/2011 06:19 AM Status: Post and Reply |
|
![]() |
- BillMiller823 | - 08/14/2011 06:19 AM |
![]() |
- Lunis Orcutt | - 08/14/2011 02:32 PM |
![]() |
- BillMiller823 | - 08/15/2011 05:22 AM |
![]() |
- Lunis Orcutt | - 08/15/2011 04:00 PM |
![]() |
- BillMiller823 | - 08/16/2011 06:03 AM |
![]() |
- Lunis Orcutt | - 08/16/2011 10:55 PM |
![]() |
- BillMiller823 | - 08/18/2011 07:03 AM |
![]() |
- Lunis Orcutt | - 08/18/2011 05:23 PM |
![]() |
- BillMiller823 | - 08/20/2011 03:54 AM |
![]() |
- Lunis Orcutt | - 08/20/2011 10:13 PM |
![]() |
- BillMiller823 | - 08/21/2011 03:27 AM |
![]() |
- BillMiller823 | - 08/23/2011 05:52 PM |
![]() |
- Lunis Orcutt | - 08/23/2011 06:17 PM |
![]() |
- BillMiller823 | - 08/23/2011 10:14 PM |
![]() |
- Lunis Orcutt | - 08/24/2011 02:42 PM |
![]() |
- BillMiller823 | - 08/28/2011 05:45 AM |
![]() |
- artsilen | - 09/26/2011 06:41 PM |
![]() |
- Lunis Orcutt | - 09/26/2011 11:19 PM |
![]() |
- BillMiller823 | - 08/31/2011 06:38 AM |
![]() |
- Lunis Orcutt | - 08/31/2011 08:17 PM |
![]() |
- BillMiller823 | - 09/01/2011 01:22 AM |
![]() |
- R. Wilke | - 09/01/2011 04:57 AM |
![]() |
- BillMiller823 | - 09/01/2011 05:36 AM |
![]() |
- R. Wilke | - 09/01/2011 05:48 AM |
![]() |
- BillMiller823 | - 09/01/2011 06:36 AM |
![]() |
- R. Wilke | - 09/01/2011 06:52 AM |
![]() |
- Lunis Orcutt | - 09/01/2011 11:37 AM |
![]() |
- BillMiller823 | - 03/04/2012 04:55 AM |
![]() |
- Lunis Orcutt | - 03/04/2012 02:07 PM |
![]() |
- BillMiller823 | - 03/05/2012 05:04 AM |
|
|
|
|
Is it possible to create a "modify last command" macro that will open the last spoken command and allow one to view/edit it? That would be quite helpful. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
Early versions of KnowBrainer 2011 included an Edit Last Command macro which would do exactly as the name implied but Nuance developers are not savvy to these types of needs because they don't typically use NaturallySpeaking for everyday use. If all Nuance employees were required to use NaturallySpeaking for their everyday workload, besides potentially doubling their efficiency, they would be able to better appreciate NaturallySpeaking's limitations and benefits. Although we've been making that recommendation since 1993, we've never gotten anywhere with it.
Because of changes made to the NaturallySpeaking Ver. 6 Command Browser (if memory serves correctly) we were forced to remove this command from the KnowBrainer arsenal because we couldn't figure out a way to implement it. We miss this functionality. -------------------------
|
|
|
|
|
|
|
|
|
Thank you Lunis. If I say, "mouse grid 5 click" which essentially centers the mouse and clicks the middle of the screen, there's no way to view or copy the command name or script it executed? Or if I make a macro for that called "center mouse" and say it, I cannot view that by saying "correct that" or anything similar? Just checking, thanks. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
Unless you're using DNS Pro, you cannot record, nor would we even recommend doing so, MouseGrid commands but you can create MouseGrid commands inside of KnowBrainer. If you have a way of recording the various MouseGrid commands (such as having someone write down the numbers for you) you can use VerbalBasic to create a MouseGrid command. To produce the following KnowBrainer Test Command we did the following:
1. Say New Global Command 2. Dictate the name of your command which in this case we will use “Test Command”. Note how the command automatically appears in Title Case when you dictate. 3. Say Mouse Area 1 to type the following 2 lines of code: MouseGrid 1,1 Wait 300 4. Say Mouse Area 5 to create the 2nd 2 lines of script . 5. Say Left Click to create the following Mouse Single Left Click ButtonClick 1,1 The previous command moves the cursor to the 1st section of the 9 grids, then moves to the cursor to the center grid and initiates a Left Mouse Click. Note: It's actually more efficient to produce precise mouse commands by using KnowBrainer to create x & y coordinates but you will need another application, such as Microsoft Paint, to figure out where the mouse coordinates are. In DNS Pro, you can simply say Find Mouse Position (with an additional KnowBrainer command) but this is not possible in Premium. -------------------------
|
|
|
|
|
|
|
|
|
Thank you Lunis.
The Find Mouse Position command is great, and I'll definitely make specific SetMousePosition commands, however for "center mouse" I want to use the mouse grid to make the command universal for multiple screen resolutions. That said, for some reason, this script isn't working: MouseGrid 1,5 Wait 300 ButtonClick 1,1 Any idea why it's not working? Thanks. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
It works on our system but your computer may be running a little slower. Try increasing your wait time from 300 (3/10 of a 2nd) to 1000 (1 second).
-------------------------
|
|
|
|
|
|
|
|
|
I think the problem is I have a (bad) "Center mouse" command in Natspeak. When I first attempted to make the command, and said it, it was misrecognized, so I tried to train it and noticed something like "make this a command" as a Natspeak correction choice (sorry if my description isn't great, I'm a newbie). I tried that, hoping it would lead to something good.
So apparently Natspeak commands take precedence over KnowBrainer commands and I need to delete the Natspeak command? Thanks. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
It can go either way. Global NaturallySpeaking commands often take precedence over KnowBrainer commands but sometimes it goes the other way around. You can exercise additional control by making 1 of your commands application-specific in either KnowBrainer or NaturallySpeaking.
-------------------------
|
|
|
|
|
|
|
|
|
Thank you Lunis, you're helping me transition from DragonDictate Classic to Natspeak Pro 11.5 with KnowBrainer 2011.
Please don't laugh, but... since I'm not (yet) familiar with how to write macros by voice using KnowBrainer & Natspeak, I'm using DragonDictate to convert many of my custom macros into KnowBrainer. I wrote a bunch of commands to help me efficiently add my macros to KnowBrainer. Question: how important is it to have "SendSystemKeys" instead of "SendKeys" in scripts? I ask because most of mine have "SendKeys" and if I need to convert them to "SendSystemKeys" I want to do it before adding my commands to KnowBrainer -- unless there's an easy way to convert an entire vocabulary from "SendKeys" to "SendSystemKeys" once it's in KnowBrainer? Thank you. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
The following only applies to Windows 7 but if you are using Windows 7, read on.
If you have a string of single movement commands such as the following: SendKeys "{Alt+f}" SendKeys "a" SendKeys "{Alt+t}" or SendKeys "{Alt+f}" Wait 250 SendKeys "a" Wait 250 SendKeys "{Alt+t}" You'll probably be fine but if you have command string such as: SendKeys "{Alt+f}a{Alt+t}" You will need to convert to: SendSystemKeys "{Alt+f}a{Alt+t}" -------------------------
|
|
|
|
|
|
|
|
|
Roger that, thanks Lunis.
I think I'll figure out an easy way to convert them all to "SendSystemKeys" just to be safe. I could use "find & replace" commands on the actual DragonDictate vocabularies since they open in WordPad. I think I'll test a vocabulary to see how that works. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
I have many "log-in" macros to make it easy to log-in to various programs and websites.
To what vocabulary should I convert those in KnowBrainer? Application specific? I'd like to store them in a way that is easy to locate and remove them so if I share my KnowBrainer macros, I can first remove them. Thank you. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
You could make them application specific but unfortunately, there's no way to truly organize your commands from within KnowBrainer because #1 that feature has never been implemented and #2 one of the advantages of KnowBrainer (which is a disadvantage in this case) is that you can see every commands which gives you the option to edit, change the name, delete or just deactivate. Our suggestion is to keep a separate document, spreadsheet or sticky note with a list of your commands.
-------------------------
|
|
|
|
|
|
|
|
|
Would it be easy to add an "always active" vocabulary (like another global)?
Users could add commands to it that would stay separate from the already large global vocabulary. But I don't know how to add such a vocabulary, or if it's possible. Thank you kindly. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
It's definitely doable but would require more R&D
-------------------------
|
|
|
|
|
|
|
|
|
^Maybe it's a good idea for a future version of KnowBrainer?
Question: How does Natspeak handle HeardWord commands with punctuation, e.g.: "Blackboard: anchor" or "Blackboard -- anchor" What would be the correct script to call those with HeardWord commands? Thanks. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
Quote: Our suggestion is to keep a separate document, spreadsheet or sticky note with a list of your commands. From time to time I do screen captures of my user-defined commands, which, over the past few months, seem to have grown exponentially. Printed, and trim off the excess paper, and I have a useful cheat sheet; but that's only good for so long as I do not add any new commands to what I already have. It would be nice to have a text file generated, much like the user log, that could be printed out whenever I need it. Some of the commands are somewhat arcane and which I composed to address specific situations; others are used so frequently that they have automatically become part of my normal vocabulary to the extent that I am no longer conscious of actually speaking those words. Between the two extremes lies a boatload of stuff whose frequency of use varies immensely over time; then too, I'll have a "senior moment" when I cannot remember the precise verbal formulation that I need to invoke a particular command, and that can be annoying. There are some workarounds that I could do, like running the screen capture through an OCR program that will create editable text, but that's a lot of work for what I see to be very small gain. There may be a better way, but I haven't figured it out yet. Ideas, anyone? ------------------------- Art Silen artsilen@sbcglobal.net; art.silen.mediator@gmail.com "Question assumptions" DSN 11.5, running on Win7;Intel Core i7 CPU 970 @3.20 GHz; System Memory 12 GB; Graphic AMD Radcon HD6570; System Board 2A861.04E01; System Bios 6.15 |
|
|
|
|
|
|
|
|
This probably isn't really bulletproof but we keep a copy of Microsoft OneNote running all the time. It's basically just a sticky note on steroids and among our to do list, we additionally list all of our “less frequently used” commands by name. We don't bother with the code because the name should imply what it does. For example, 1 frequently forgotten command is called Scan Document which does exactly what the name implies, down to saving and displaying the scan.
-------------------------
|
|
|
|
|
|
|
|
|
Lunis, is punctuation allowed in commands? Thank you kindly. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
We normally recommend against the use of punctuation in command names and NaturallySpeaking will not permit this action but punctuation in command names is permissible in your KnowBrainer 2011.
-------------------------
|
|
|
|
|
|
|
|
|
Thank you Lunis, but how do you call a HeardWord command with punctuation in it? Is the punctuation alone in quotes? Thank you kindly. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
Quote: I have punctuation in quite a few HeardWord commands in DragonDictate and need to know how to convert them, or if the punctuation must be removed. Bill, check out the following: HeardWord("example", ".\period", "example" Rüdiger PS: and don't forget to replace a closing parenthesis for the smilies ...
------------------------- Well, it's past the point where we can make any changes in the code, but we can still make changes to the Easter Egg! |
|
|
|
|
|
|
|
|
Thank you Rudiger. HeardWord "Course",":\colon","homepage" HeardWord "Course","--\dash","homepage" Perhaps more importantly, if I want to say the command "Course: homepage" will I need to actually say "colon" in the phrase? ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
Bill, you don't have to use parentheses, it is just another notation, it will also work like this: HeardWord "example", ".\period" As far as command names, they are totally independent of the contents of the scripts, so you are free to choose anything you like and find convenient to dictate. That's just the whole idea of using them, otherwise you might as well just dictate the text. Rüdiger PS: as far as simply inserting text into the document, using scripting is overkill anyhow, you can do the same with text & grafic commands. I just wanted to demonstrate that you may well use punctuation within HeardWord commands.
------------------------- Well, it's past the point where we can make any changes in the code, but we can still make changes to the Easter Egg! |
|
|
|
|
|
|
|
|
Thank you Rudiger. Thanks. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
Bill, having punctuation in the command name certainly won't help recognizing them. Explaining how to help recognizing command names theoretically is kind of awkward, and the same is true for using the control key to force such, for able bodied people by the way. Please give us a particular example that you are having problems with, going through it will be much easier than tryinig to explain, and a lot more useful also. Rüdiger
------------------------- Well, it's past the point where we can make any changes in the code, but we can still make changes to the Easter Egg! |
|
|
|
|
|
|
|
|
Our 1st recommendation would be to completely eliminate punctuation from command names as it's just going to create extra work for you. For example: If you wish to go to the homepage of your browser you can just say your KnowBrainer Home Page or Go To Home Page command. If you are having trouble with NaturallySpeaking recognizing command names you always have the option of creating longer command names but we DEFINITELY recommend leaving out the punctuation. If you wanted to create a global homepage command for Internet Explorer, that could be deployed from within any application, your script might look as follows:
Sub Main HeardWord "switch","to","Internet Explorer" Wait 1 SendSystemKeys "{Alt+Home}" End Sub -------------------------
|
|
|
|
|
|
|
|
|
From a Natspeak recognition and correction viewpoint, which is better:
A loop command: Click left <1 to 40> Or individual commands: Click left 1 Click left 2 Click left 3 ... Click left 40 I ask because I don't mind writing the more tedious individual commands if they will be recognized better, or if they are easier to correct. ------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
|
|
|
|
From a recognition point of view, it shouldn't make any difference. Combining your commands into a single Advanced-Scripting listing command will not only take less time but will be easier to sort through when you're looking for commands in the future. For these 2 reasons, we recommend against the single command approach.
-------------------------
|
|
|
|
|
|
|
|
|
Roger that. Thank you Lunis.
------------------------- Bill Miller :-) C1-2 Quadriplegic with a 255 High Bowling Game Co-founder of Manufacturing Genuine Thrills Inc. d/b/a MGT My blog: http://powerwheelchairusers.wordpress.com Business website: http://www.ikanbowler.com Personal website: http://www.lookmomnohands.net |
|
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2013 FuseTalk™ Inc. All rights reserved.