KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: launching programatically accoustic optimiser
Topic Summary:
Created On: 08/25/2020 05:28 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 launching programatically accoustic optimiser   - dicdoc - 08/25/2020 05:28 PM  
 launching programatically accoustic optimiser   - PG LTU - 08/26/2020 01:34 PM  
 launching programatically accoustic optimiser   - dicdoc - 08/26/2020 04:58 PM  
 launching programatically accoustic optimiser   - dicdoc - 08/26/2020 06:11 PM  
 launching programatically accoustic optimiser   - Lunis Orcutt - 08/26/2020 07:22 PM  
 launching programatically accoustic optimiser   - PG LTU - 08/26/2020 07:10 PM  
Keyword
 08/25/2020 05:28 PM
User is offline View Users Profile Print this message

Author Icon
dicdoc
Top-Tier Member

Posts: 269
Joined: 07/31/2014

I found out this by error. I wanted to activate correction dialog (not menu), as with keyboard shorcut, but instead it launches accoustic optimiser. In case somebody needs it :

The parameter is dgndlgACODlg

Dim engine As New DgnEngineControl

Dim mic As New DgnMicBtn

mic.Register
mic.MicState = dgnmicSleeping
mic.UnRegister

'MsgBox (CSTR(ActiveWindowTitle))
'Stop
If InStr (CStr(ActiveWindowTitle), "Fenêtre d'épellation") Then
 SendKeys "%1",1
 GoTo FinCommune
End If
If InStr (CStr(ActiveWindowTitle), "Éditeur Dragon - ") Then
 SendKeys "{Pad-}",1
End If
If InStr (CStr(ActiveWindowTitle), " - Word") Then
 ButtonClick 1, 2
 SendKeys "{Pad-}",1
End If


DialogueCorrection:
  'Is the engine is ready to show the dialog ?
  ' AddWordDialog dgndlgACODlg
  If engine.DlgStatusGet(DgnDialogConstants.dgndlgACODlg) = DgnDlgStatusConstants.dgndlgstatusOK Then
      engine.DlgShow(DgnDialogConstants.dgndlgACODlg, n, , 0)'
  End If

FinCommune:
mic.Register
mic.MicState = dgnmicOn
mic.UnRegister

The reason why I want to activate it programatically, is that in certain situation, the sendkeys shorcut adds an unwanted lag


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

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

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

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