KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts
Topic Summary: In case anybody has already written this...
Created On: 02/13/2020 10:38 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Ag - 02/13/2020 10:38 PM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - PG LTU - 02/14/2020 09:48 AM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Edgar - 02/14/2020 10:53 AM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Edgar - 02/14/2020 11:02 AM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Lunis Orcutt - 02/14/2020 02:38 PM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Lunis Orcutt - 02/14/2020 03:37 PM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - kkkwj - 02/14/2020 11:33 PM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Edgar - 02/15/2020 11:30 AM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Mphillipson - 02/15/2020 11:52 AM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - PG LTU - 02/16/2020 03:08 PM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - monkey8 - 02/18/2020 06:11 PM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Ag - 03/15/2020 08:03 PM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Mphillipson - 03/25/2020 02:04 PM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Ag - 03/15/2020 08:01 PM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - dilligence - 03/16/2020 12:19 AM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - kkkwj - 03/24/2020 11:29 PM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - R. Wilke - 03/25/2020 03:47 AM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - kkkwj - 03/25/2020 11:08 AM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Bingos - 04/13/2020 01:29 AM  
 Looking for tool to generate KnowBrainer/Dragon/... commands from list of keyboard shortcuts   - Ag - 02/25/2021 11:31 PM  
Keyword
 02/14/2020 10:53 AM
User is offline View Users Profile Print this message

Author Icon
Edgar
Top-Tier Member

Posts: 1285
Joined: 04/03/2009

I also wrote a script which does almost exactly what PG's does - writes an XML file which is then imported into KnowBrainer. I went the route of hard-coding the application specific detail into the script so the script had to be changed for each application. I also hard-coded the iterations (number of commands be created) as it was easier than writing the code to "keep doing until EOF". I also did not bother to write code to open a (text) file for input and another for output; I just had the input text file open in a text editor on the left side of the screen and the output XML file open in a text editor on the right side of the screen. I would make sure that I started out with the text cursor on the first line of the input file and a blank line immediately after the XML header of the output file, then, using basic commands like
SendKeys "{Home}", 1' ensure cursor is at the beginning of the line
SendKeys "+{End}", 1' select to end of line
SendKeys "^c", 1' copy selection to clipboard (the Clipboard function is unreliable on my system)
Wait 0.3' my system requires a wait
SendKeys "{Down}", 1' prepare the input text editor for the next iteration
SetMousePosition 0, 1000, 10' over the output file's Title Bar
Wait 0.1
ButtonClick 1, 1' activates the output file text editor
line = Clipboard
Wait 0.3
' parse line to create the information required for the XML file's command structure
' use SendKeys to print out the command then
SendKeys "{Enter}", 1' add a blank line so that the text editor is ready for the next iteration
SetMousePosition 0, 100, 10' over the input file's Title Bar
Wait 0.1
ButtonClick 1, 1' activates the input file text editor

Put the above (untested) code in a "For" loop with hard-coated values values of "1 to XXX" where XXX is the number of lines/shortcuts in the input file.



-------------------------

-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 524 guests browsing this forum, which makes a total of 524 users using this forum.

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