![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: Output list of custom commands to a plain text document? Topic Summary: Created On: 08/10/2021 01:11 PM Status: Post and Reply |
|
![]() |
![]() |
- benTalks | - 08/10/2021 01:11 PM |
![]() |
![]() |
- Lunis Orcutt | - 08/10/2021 03:17 PM |
![]() |
![]() |
- Ag | - 08/16/2021 11:25 PM |
![]() |
![]() |
- R. Wilke | - 08/10/2021 03:34 PM |
![]() |
![]() |
- Edgar | - 08/10/2021 03:49 PM |
![]() |
![]() |
- Edgar | - 08/10/2021 03:51 PM |
![]() |
![]() |
- Lunis Orcutt | - 08/15/2021 02:06 PM |
![]() |
![]() |
- Lunis Orcutt | - 08/15/2021 02:25 PM |
![]() |
![]() |
- monkey8 | - 08/18/2021 05:14 PM |
![]() |
![]() |
- benTalks | - 08/15/2021 12:47 PM |
![]() |
![]() |
- Edgar | - 08/15/2021 06:36 PM |
![]() |
![]() |
- Ag | - 08/16/2021 11:16 PM |
![]() |
![]() |
- kkkwj | - 08/17/2021 10:47 PM |
![]() |
![]() |
- monkey8 | - 08/18/2021 05:08 PM |
![]() |
|
Hello, I have a bunch of custom commands, but have trouble remembering them all. Does anyone have a script that will convert the commands.XML file into a simple document that I can print? Just a simple table in HTML would work great. |
|
|
|
![]() |
|
The approach you used to post this question is 1 of the best solutions we can think of. We recommend opening your Command Browser as vertically wide as possible, reversing your alphabetical order and taking a JPEG snapshot. If you can't fit all of your commands into a single picture, try placing multiple pictures side-by-side in a program like Microsoft Word. HOWEVER, our favorite option is to leave the Dragon Command Browser open; behind other windows or minimized if necessary. This is 1 of the primary reasons we use 3 32 inch monitors. We are available 24 hours a day; mostly because our court ordered ankle bracelet transmitter beeps if we wander too far from the trailer ------------------------- Change "No" to "Know" w/KnowBrainer 2022 |
|
|
|
![]() |
|
Although I prefer to go directly from XML to text or HTML without going through JPEG or other bitmaps,
I think it might be useful to add to Lunis's suggestion:
a) I just took such a screen capture, pasted into Microsoft OneNote, and then did "Copy Text from Picture", and it worked
b) conversely, the SnagIt screen capture application which I had installed recognized that the Dragon Command Browser is a scrolling window, rolled it automatically, but did not manage to capture anything except the last windowful.
Anyway, there are ways to go from screen captures to useful stuff like text or HTML. OK in if you're doing it as a one-off, not so good if you want to do this regularly.
------------------------- DPG15.6 (also DPI 15.3) + KB, Sennheiser MB Pro 1 UC ML, BTD 800 dongle, Windows 10 Pro, MS Surface Book 3, Intel Core i7-1065G7 CPU @ 1.3/1.5GHz (4 cores, 8 logical, GPU=NVIDIA Quadro RTX 3000 with Max-Q Design. |
|
|
|
![]() |
|
Lunis, I always thought that living in a trailer park was in the past. Have you gone back to it by now? ------------------------- The New Game in Town: DragonConnect |
|
|
|
![]() |
|
I use a programmer's text editor (PSPad) to do exactly this quite easily. This topic is posted in the KnowBrainer section so, as an example, here are the first 27 lines of its command file: <?xml version="1.0" encoding="utf-8"?> <!----> <!--KnowBrainer Professional XML Command File--> <!----> <!----> <KnowBrainerCommands version="014"> <Commands scope="global" group="new global"> <Command name="Duck To <dictation>" group="" enabled="true"> <description></description> <content type="WinWrap Basic"><![CDATA[ Sub Main ShellExecute "https://duckduckgo.com/" Wait 3 'Clipboard ListVar1 'Wait 0.4 'SendKeys "^v" 'Wait 0.4 SendKeys ListVar1, 1 SendKeys "~" Wait 3 SendKeys "~" End Sub ]]></content> </Command> <Command name="<keyname> Release" group="" enabled="true"> <description></description> <content type="WinWrap Basic"><![CDATA[ and here are a few other command name lines:
25: <Command name="<keyname> Release" group="" enabled="true"> 40: <Command name="Zotz <FlowTypes> Constructor" group="" enabled="true"> 144: <Command name="Download Tiny <1to100>" group="" enabled="true"> 216: <Command name="Helper Download <1to100>" group="" enabled="true"> 316: <Command name="Inject Directly <dictation>" group="" enabled="true"> 324: <Command name="Download Panel" group="" enabled="true"> 334: <Command name="Do The Scan" group="" enabled="true"> 342: <Command name="Forced Injection <dictation>" group="" enabled="true"> 439: <Command name="Remove Leading" group="" enabled="true"> (remember, this is my version of the KnowBrainer commands file). PSPad exports all of the lines which denote command names to a text file. You can then easily strip all of the leading line numbers off, remove all of the [<Command name="] prefixes and all of the [" group="" enabled="true">] suffixes leaving you with something which looks like: Duck To <dictation> <keyname> Release Zotz <FlowTypes> Constructor Download Tiny <1to100> Helper Download <1to100> Inject Directly <dictation> Download Panel Do The Scan Forced Injection <dictation> Remove Leading if the list names look a bit strange you can do another pair of replacements, replace [<] with [<] and [>] with [>]: Duck To <dictation> <keyname> Release becomes: Duck To <dictation> <keyname> Release etc. you could then sort this to show all command names in alphabetical order. One drawback is that it is a little more work to sort these commands out as to availability (global, application- / window-specific). ------------------------- -Edgar |
|
|
|
![]() |
|
Well, that's quite strange this board doesn't seem to want to allow exact pasting of text. In the above example the real file does not show list names with angle brackets.
------------------------- -Edgar |
|
|
|
![]() |
|
Edgar, ------------------------- Change "No" to "Know" w/KnowBrainer 2022 |
|
|
|
![]() |
|
Here is a copy of the latest KnowBrainer command called Save Post. It will not work in the Quick Reply field but will work in the Reply field. If you are not using KnowBrainer <%> Build 08-11-2021 feel free to copy the following script into Dragon as an Advanced-Scripting command.
Sub Main SendKeys "^a" Wait 0.1 SendKeys "^c" Wait 0.1 SendKeys "^s" Wait 2 SendKeys "^{End}" End Sub ------------------------- Change "No" to "Know" w/KnowBrainer 2022 |
|
|
|
![]() |
|
Well you have obviously edited your post because when you edit a post the angle brackets disappear, workaround is simple, just copy everything to DragonPad, edit on DragonPad or similar and paste back in. ------------------------- |
|
|
|
![]() |
|
Edgar,
Thanks for sharing this. Would it be possible for you to attach the file, or provide a download link? |
|
|
|
![]() |
|
------------------------- -Edgar |
|
|
|
![]() |
|
I do this regularly, creating and comparing command lists, as part of my version control and change tracking system. I have Dragon speech commands that export MyCmds.xml (which I call MyCommands-Dragon.xml for various reasons), and then invoke the following from the cygwin command line, , or more often makefiles and other scripts.
Here's the quick and dirty approach:
< MyCommands-Dragon.xml iconv -f utf-16 -t utf-8 | grep '
I started to clean the above up by providing xmlstarlet commands, but I'm too lazy, the above is good enough, culture at howsoever you may want.
Obviously you probably also want to provide lists.
And for me this is only the very small number of commands that I actually writing Dragon's basic like scripting language, many many more of my commands live in AutoHotKey.
Providing a decent browser for such command lists is on my to do some day. Complicated by the fact that I wish to have it use regular expressions or grammars, not just a fixed list of commands.
I.e. I want to type "foo bar", and I want to find all the regular expressions for BNF or whatever that match "foo bar" or "bar foo". ------------------------- DPG15.6 (also DPI 15.3) + KB, Sennheiser MB Pro 1 UC ML, BTD 800 dongle, Windows 10 Pro, MS Surface Book 3, Intel Core i7-1065G7 CPU @ 1.3/1.5GHz (4 cores, 8 logical, GPU=NVIDIA Quadro RTX 3000 with Max-Q Design. |
|
|
|
![]() |
|
I wish I had a C# example to connect to Dragon and dump the commands to an XML filename of my choice. If I had that, then the rest would be relatively easy.
------------------------- Win10/11/x64, AMD Ryzen 7 3700X/3950X, 64/128GB RAM, Dragon 15.3, SP 7 Standard, SpeechStart, Office 365, KB 2017, Dragon Capture, Samson Meteor USB Desk Mic, Amazon YUWAKAYI headset, Klim and JUKSTG earbuds with microphones, excellent Sareville Wireless Mono Headset, 3 BenQ 2560x1440 monitors, Microsoft Sculpt Keyboard and Logitech G502 awesome gaming mouse. |
|
|
|
![]() |
|
I have a bunch of custom commands, but have trouble remembering them all. Does anyone have a script that will convert the commands.XML file into a simple document that I can print?
Use the following application which is free and does all the work for you, Just start the application and everything will be at your fingertips. The application you will find your active command file from your user profile and show the relevant commands from the mycmds.dat on a sidebar broken into global commands, application and Windows specific commands when relevant windows are active. If you have any problems downloading let me know. You can also print out all the commands in a text file.. Full description below.
http://www.pcbyvoice.com/shop/pcbyvoice-scriptmanager/
------------------------- |
|
|
FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.