KnowBrainer Speech Recognition
Decrease font size
Increase font size
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
Linear : Threading : Single : Branch
 Output list of custom commands to a plain text document?   - benTalks - 08/10/2021 01:11 PM  
 Output list of custom commands to a plain text document?   - Lunis Orcutt - 08/10/2021 03:17 PM  
 Output list of custom commands to a plain text document?   - Ag - 08/16/2021 11:25 PM  
 Output list of custom commands to a plain text document?   - R. Wilke - 08/10/2021 03:34 PM  
 Output list of custom commands to a plain text document?   - Edgar - 08/10/2021 03:49 PM  
 Output list of custom commands to a plain text document?   - Edgar - 08/10/2021 03:51 PM  
 Output list of custom commands to a plain text document?   - Lunis Orcutt - 08/15/2021 02:06 PM  
 Output list of custom commands to a plain text document?   - Lunis Orcutt - 08/15/2021 02:25 PM  
 Output list of custom commands to a plain text document?   - monkey8 - 08/18/2021 05:14 PM  
 Output list of custom commands to a plain text document?   - benTalks - 08/15/2021 12:47 PM  
 Output list of custom commands to a plain text document?   - Edgar - 08/15/2021 06:36 PM  
 Output list of custom commands to a plain text document?   - Ag - 08/16/2021 11:16 PM  
 Output list of custom commands to a plain text document?   - kkkwj - 08/17/2021 10:47 PM  
 Output list of custom commands to a plain text document?   - monkey8 - 08/18/2021 05:08 PM  
Keyword
 08/10/2021 03:49 PM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 1285
Joined: 04/03/2009

Originally posted by: benTalks Does anyone have a script that will convert the commands.XML file into a simple document that I can print?

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
DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Office 365, Norton Security, Shure X2U XLR to USB mic adapter with Audio Technica DB135 vocal mic, Asus X299-Deluxe Prime, Intel Core i9-7940X (14 core, 4.3 GHz overclocked to 4.9 GHz), G.SKILL TridentZ Series 64GB (4 x 16GB) DDR4 3333 (PC4 26600) F4-3333C16Q-64GTZ, NVIDIA GIGABYTE GeForce GTX 1060 GV-N1060G1 GAMING-6GD REV 2.0 6GB graphics card with 3 1920x1080 monitors

Statistics
32359 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 0 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 475 guests browsing this forum, which makes a total of 475 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.