![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: List commands w variables Topic Summary: Generate multiple text shortcuts in a numbered batch Created On: 06/04/2021 12:37 PM Status: Post and Reply |
|
![]() |
![]() |
- JudCrandall | - 06/04/2021 12:37 PM |
![]() |
![]() |
- Lunis Orcutt | - 06/04/2021 01:37 PM |
![]() |
![]() |
- Edgar | - 06/04/2021 06:53 PM |
![]() |
![]() |
- JudCrandall | - 06/04/2021 09:27 PM |
![]() |
![]() |
- dilligence | - 06/05/2021 09:07 AM |
![]() |
![]() |
- Robert Snow | - 06/14/2021 08:29 PM |
![]() |
![]() |
- dilligence | - 06/14/2021 09:06 PM |
![]() |
![]() |
- Robert Snow | - 06/16/2021 12:49 PM |
![]() |
![]() |
- JudCrandall | - 06/05/2021 10:50 AM |
![]() |
![]() |
- JudCrandall | - 06/12/2021 10:10 PM |
![]() |
![]() |
- dilligence | - 06/13/2021 12:46 PM |
![]() |
![]() |
- JudCrandall | - 06/15/2021 10:13 PM |
![]() |
|||
Hi guys, First-time poster longtime lurker. As a writer, I like to be able to say "nervous one" or "nervous two" for my boilerplate shortcuts, to show a certain emotion. Instead of having a thousand different commands, each one with its own number on the end… I suspect I should be able to use the list command function to create them in larger groups, eg, provide a list of a five phrases instead of having to program five different shortcuts with a number on the end...but I can't figure out how to do it. I tried a command called "nervous <1to5>" but I'm clearly not using the variable feature correctly in the name editor. In the contents field of the command, I listed five different phrases like so, hoping that I could then say "nervous one" and the phrase "he laughed uneasily" would pop up. But it doesn't work that way, and I can't find any good tutorial. He laughed uneasily He swallowed hard He cleared his throat He pursed his lips He froze perfectly still Any suggestions on how I could create such a command, that would pick a phrase from a list based on the number I dictate? It's tiresome putting in one command at a time, plus knowbrainers's "new shortcut <dictation>" keeps getting my dictation wrong and I have to edit each one anyway. Thanks, Jud ------------------------- Sure and quick, Louis. That's the only way. |
|||
|
|||
![]() |
|||
Welcome (See Mission Statement) In our opinion, it would make more sense to simply add these phrases to your vocabulary via Written Form/Spoken Form. The advantage of using the Vocabulary Editor is that you will not have to pause. For example, you could produce “Then he swallowed hard when he was served” (without pausing). If you like this approach, open the Vocabulary Editor, add “then he swallowed hard” to the Written Form and “nervous two” to the Spoken Form. ------------------------- Change "No" to "Know" w/KnowBrainer 2020 |
|||
|
|||
![]() |
|||
Lunis is probably right in the way he offered do solve this particular situation. But you did not learn how to use list commands… nervous <1-5> Sub Main Select Case ListVar1 Case "1" SendKeys "whatever you wanted to say", 1 Case "2" SendKeys "", 1 Case "3" SendKeys "", 1 Case "4" SendKeys "", 1 Case "5" SendKeys "", 1 Case Else TTSPlayString "this command only works for the Numbers 1 through 5" Exit All End Select End Sub I did not bother to fill out the exact text strings you want to output (see case 1: "whatever you want it to say"). Because there is potential confusion between 2, two, to, & too (not to mention 1, one & won) there are more bulletproof ways to do this, but, if you are using Dragon® 14 or fifteen, this should work just fine. ------------------------- -Edgar |
|||
|
|||
![]() |
|||
Thanks Lunis, I will read the training manual. It's hard to know where to start. I bought the "speech productivity" scripting course book the other day that you recommended on this forum, but I don't even know if that's what I need, so I'll read your training guide first. ------------------------- Sure and quick, Louis. That's the only way. |
|||
|
|||
![]() |
|||
You will find List Commands on page 30 of the Easy Guide to Dragon Scripting. Note that my guide uses DVC Scripting instead of Advanced Scripting (Edgar uses Advanced Scripting in his example). Why? Well, it guarantees the fastest deployment for relatively simple voice commands like these.
Here's a simple comparison of DVC versus Advanced Scripting.
Back to your original question. Here is how you do it. Just double-click any of the existing DVC voice commands in your Dragon Command Browser (like the <mousegrid> command for instance) and choose Create New. Now replace the original contents with the following:
I have attached the voice command so you can easily import it into your Dragon Command Browser. Make sure to have Dragon look for *.xml instead of *.dat files:
Note that this voice command uses SendKeys (page 19 of the Easy Guide) instead of boilerplates. This allows you to create fast and convenient list commands with short strings of text. You can add as many as you like. Just add the new arguments/keywords to the list.
If you want to create similar list commands in the future, simply use this one as a template.
------------------------- Turbocharge your Dragon® productivity with 40 Power Addons |
|||
|
|||
![]() |
|||
Yes I need the book. But I dont have or use PayPal. I do buy all the time on internet with my card. Hope there is a way. Bob ------------------------- Robert Snow |
|||
|
|||
![]() |
|||
You don't need to have a PayPal account per se, you should also have the option to "Check out as Guest" which allows you to pay with a credit card. ------------------------- Turbocharge your Dragon® productivity with 40 Power Addons |
|||
|
|||
![]() |
|||
I was able to but the book. Did the first 50 pages last night. Today I'll do a Reread. Tomorrow I'll do the 50 again but working the compuside side by side. Bob ------------------------- Robert Snow |
|||
|
|||
![]() |
|||
@Diligence, this is fantastic. Looking forward to trying it out. I'm reading your book right now and appreciate the easy to understand style.
------------------------- Sure and quick, Louis. That's the only way. |
|||
|
|||
![]() |
|||
Hi @Diligence, I got around to trying your scripting recommendation, but I'm not able to edit any of the DVC within my command browser. When I double click, nothing happens, and when I right-click, the EDIT option is grayed out. Any suggestions?
Thanks JC ------------------------- Sure and quick, Louis. That's the only way. |
|||
|
|||
![]() |
|||
That's odd...
Question:
Your forum profile says that you are using Dragon 15.6. But is that DPI (Dragon Professional Individual)? Or is it Premium or Home?
In case of the latter you would also not be able to import the voice command I have attached to this post.
Instead you would need to make this a KnowBrainer DVC scripting command. ------------------------- Turbocharge your Dragon® productivity with 40 Power Addons |
|||
|
|||
![]() |
|||
@Diligence ... Oddly enough, it worked on my second computer perfectly. For some reason my laptop still won't let me edit DVC commands, even though as far as I know it's the same version.
Thanks again though! Haven't had time to fool around with it yet but this is exactly what I was looking for. ------------------------- Sure and quick, Louis. That's the only way. |
|||
|
FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.