![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: How to write DVC commands? Topic Summary: Created On: 09/09/2020 04:12 PM Status: Post and Reply |
|
![]() |
![]() |
- rob | - 09/09/2020 04:12 PM |
![]() |
![]() |
- Matt_Chambers | - 09/09/2020 04:36 PM |
![]() |
![]() |
- dilligence | - 09/09/2020 06:30 PM |
![]() |
![]() |
- Stephan Kuepper | - 09/10/2020 03:19 AM |
![]() |
![]() |
- rob | - 09/10/2020 12:09 PM |
![]() |
![]() |
- MikeJ | - 09/10/2020 04:05 PM |
![]() |
![]() |
- rob | - 09/10/2020 04:28 PM |
![]() |
![]() |
- rob | - 09/15/2020 04:17 PM |
![]() |
|
Hi,
How do you write DVC commands inside of the Dragon commands editor?
I know where to write them within the knowbrainer command editor but I do not know the syntax, so what are the differences in syntax?
If I use an advanced scripting command in visual studio code, after the command has deployed Dragon still recognises what I am saying, but there is a delay in deploying every subsequent command or any dictated text, then all the commands and text will deploy all at once after the delay. The longer the advanced scripting command is the longer the delay is, for a command that camel cases something and add some text for example there is around a 15 second delay afterwards.
Normal text and graphics commands deploy with no problems afterwards. So that is why I want to try using DVC commands to see if that gets round the problem.
There are no problems in any of the other programs I use using the same commands.
Thanks, Rob
------------------------- Dragon Professional Group 15.6 with knowbrainer 2017 professional and speech start. |
|
|
|
![]() |
|
You can write a DVC command in the Dragon commands editor by cloning an existing DVC command, such as one of the mousegrid commands. |
|
|
|
![]() |
|
You may be interested in:
The Easy Guide to Dragon Scripting ------------------------- Auto Box - SP Editor - HyperNotes - Hotkeys for Dragon - Quick Correct - Press Utility - Easy Guide to Dragon Scripting |
|
|
|
![]() |
|
+1 for diligence. Great way to start.
------------------------- |
|
|
|
![]() |
|
Hi, The command just camel cases what is dictated and then uses the camel cased words in the sendkeys part which is the text for swapping array elements.
Sub Main Dim camelVariable, dictate, firstCharacter As String Dim wasSpace As Boolean Dim dictationLength As Integer dictate = ListVar1 dictate = Trim (dictate)' probably unnecessary firstCharacter = Mid (dictate, 1, 1) firstCharacter = LCase (firstCharacter) camelVariable = firstCharacter dictationLength = Len (dictate) If dictationLength > 1 Then For increment = 2 To dictationLength firstCharacter = Mid (dictate, increment, 1) If firstCharacter = " " Then wasSpace = True Else If wasSpace = True Then firstCharacter = UCase (firstCharacter) camelVariable = camelVariable + firstCharacter wasSpace = False End If Next increment End If Wait 0.1 SendKeys "int temp = " + camelVariable + ";{Enter}" Wait 0.1 SendKeys camelVariable + " = " + camelVariable + "[i {+} 1];{Enter}" Wait 0.1 SendKeys camelVariable + "[i {+} 1] = temp;{Enter}" End Sub
------------------------- Dragon Professional Group 15.6 with knowbrainer 2017 professional and speech start. |
|
|
|
![]() |
|
Rob,
Send me a PM on this forum with a good email for you and I can send you a DVC scripting starters kit that I put together a few years ago that you might find helpful. Mike |
|
|
|
![]() |
|
@MikeJ I just PM'd you there.
Can anyone show me where the script is wrong at the moment? Thanks, Rob ------------------------- Dragon Professional Group 15.6 with knowbrainer 2017 professional and speech start. |
|
|
|
![]() |
|
Can anyone show me where the script is wrong at the moment? https://www.youtube.com/watch?v=xRcUFvbcWCw154
Thanks, Rob ------------------------- Dragon Professional Group 15.6 with knowbrainer 2017 professional and speech start. |
|
|
FuseTalk Standard Edition v4.0 - © 1999-2021 FuseTalk™ Inc. All rights reserved.