KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Setting and toggling Dragon options
Topic Summary: Sometimes you want to change something
Created On: 08/21/2020 02:50 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Setting and toggling Dragon options   - PG LTU - 08/21/2020 02:50 PM  
 Setting and toggling Dragon options   - Matt_Chambers - 08/23/2020 10:36 AM  
 Setting and toggling Dragon options   - Alan Cantor - 08/23/2020 09:15 PM  
 Setting and toggling Dragon options   - dicdoc - 02/27/2022 05:40 PM  
 08/21/2020 02:50 PM
User is offline View Users Profile Print this message

Author Icon
Top-Tier Member

Posts: 2202
Joined: 03/21/2007

Many Dragon options are available to be easily changed by voice command without navigating through the Dragon Bar and the menus and dialog boxes.  See here and here.


Here is a command, called "[DgnOptions] [OnOffToggle]" where both words are lists:


The first list [DgnOptions] is a complex list with the DgnOptionsConstant (defined in the API) as the written part and a spoken part that is easy to remember.  The second list [OnOffToggle] is a mix of complex entries (for the boolean states, True\on and False\off) as well as a simple entry to "toggle" the current state to the opposite of what it currently is.


So you can say, for example, "beep after recognition on" or "off" or "toggle."


Sub Main

    If InStr(ListVar2,"\") Then

        EngineControl.Option(Eval(Left(ListVar1,InStr(ListVar1,"\")-1))) = Left(ListVar2,InStr(ListVar2,"\")-1)


        EngineControl.Option(Eval(Left(ListVar1,InStr(ListVar1,"\")-1))) = Not EngineControl.Option(Eval(Left(ListVar1,InStr(ListVar1,"\")-1)))

    End If

    ' comment out this line once you have it working

    If EngineControl.DlgStatusGet(dgndlgOptions) = dgndlgstatusOK Then EngineControl.DlgShow dgndlgOptions,0 

End Sub



dgnengoptionAnchorCorrectionMenu\anchor corrections

dgnengoptionAnchorResultsBox\anchor results box

dgnengoptionAutomaticPlaybackOnCorrection\playback corrections

dgnengoptionBeepAfterRecognition\beep after recognition

dgnengoptionCollectDictationData\save dictation files

dgnengoptionCorrectBringsUpSpellDialog\correct brings up spell

dgnengoptionDoubleClickForCorrection\double click to correct

dgnengoptionEnableCommandsInHtmlWindows\enable HTML windows

dgnengoptionEnableNaturalLanguageCommands\enable natural language

dgnengoptionRequireClickToSelectControls\require click for controls

dgnengoptionRequireClickToSelectLinksInIE\require clicks in browsers

dgnengoptionSaveCorrectionToArchive\save corrections

dgnengoptionSelectBringsUpCorrectionMenu\select brings up corrections

dgnengoptionSelectSearchesBackwards\select searches backwards

dgnengoptionSpellBringsUpSpellDialog\spell brings up dialog








Let me know what you think.  Hth,



Remember folks, my comments and this forum are for entertainment value only, please, no wagering or other reliance on the contents herein.  I permit no commercial use of my ideas (whether expressions or embodiments) without my written consent.

 08/23/2020 10:36 AM
User is offline View Users Profile Print this message

Author Icon
Top-Tier Member

Posts: 569
Joined: 08/09/2018

This is awesome, PG! Thanks for sharing it.
 08/23/2020 09:15 PM
User is offline View Users Profile Print this message

Alan Cantor
Top-Tier Member

Posts: 4313
Joined: 12/08/2007

Nicely done, Philip!
 02/27/2022 05:40 PM
User is offline View Users Profile Print this message

Author Icon
Top-Tier Member

Posts: 292
Joined: 07/31/2014

Is it possible to use these in order to open Spell dialog box via API ?


Memory: 16GB Microphone Brand and Model: LFH 4000 & Flexy Mike  Operating System: win 10, latest update; Surface Book 2, Processor (CPU) Type & Speed: I7 8650 Soundcard Brand and Model: none Speech Software: Dragon Medical Practice Edition, french version: 4.2 Using KnowBrainer?:Yes

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

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