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  
Keyword
 08/21/2020 02:50 PM
User is offline View Users Profile Print this message

Author Icon
PG LTU
Top-Tier Member

Posts: 2072
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)

    Else

        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

 

[DgnOptions]

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

 

[OnOffToggle]

False\off

True\on

toggle

 

 

Let me know what you think.  Hth,



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




PG





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
Matt_Chambers
Top-Tier Member

Posts: 254
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: 3841
Joined: 12/08/2007

Nicely done, Philip!
Statistics
31783 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 517 guests browsing this forum, which makes a total of 517 users using this forum.

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