![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: CorrectThat 0.2 beta Topic Summary: Everything now works Created On: 09/07/2020 02:42 PM Status: Post and Reply |
|
![]() |
![]() |
- Edgar | - 09/07/2020 02:42 PM |
![]() |
![]() |
- Edgar | - 09/21/2020 06:09 PM |
![]() |
![]() |
- Matt_Chambers | - 09/22/2020 05:30 PM |
![]() |
|||||
7 September 2020 THIS IS A SECOND LOOK - all functionality is working. If you make a lot of major changes to the GUI (font sizing, localization, window sizing etc.) and things get irretrievably ugly don't hesitate to reset the application to defaults (there is a button on the Preferences dialog and you can delete the Settings folder. The artificial stupidity is not quite as stupid as it was. The algorithm that creates the permutations of suggestions is considerably improved. The order in which these offerings are presented is still hardcoded (though I am considering adding that as a user option) though it now generates all possible permutations with no duplications. I have attached a zip files both the newest Readme text file and the newest application. I did not bother to include new text files as they have not changed. If you want the complete Visual Studio solution get it from my dropbox here: https://www.dropbox.com/s/3phsbicjw0m4sad/CorrectThat0.2betaSolution.zip?dl=0
------------------------- -Edgar |
|||||
|
|||||
![]() |
|||||
Here is a new driver script (it has been tested as both a KnowBrainer and a Dragon script in 15.3) - you will need to modify the last statement to reflect where you actually place the application: Sub Main Dim recognized As String Dim phraseWords() As String Dim numberOfWords, iteration As Integer Clipboard ("")' clear the clipboard SendKeys "^c", 1 Wait 0.4 recognized = Clipboard If recognized = "" Then Dim EngineControl As New DgnEngineControl EngineControl.DlgShow(dgndlgRecognitionHistory,0,,0) Wait 0.5 'Copy the the second to last uttered item in the recognition history box to the clipboard SendKeys "{Up}{Tab}", 1 SendKeys "^c", 1 Wait 0.4 'Close the recognition history window SendKeys "{Esc}" 'Wait 0.5 'Needed for script stability recognized = Trim(Clipboard$()) 'Recognition history window adds one space to the end of everything Wait 0.4 phraseWords = Split(recognized, " ") numberOfWords = UBound(phraseWords)'UBound is zero-based 'MsgBox CStr(numberOfWords)' so the real number of words is numberOfWords + 1 ' For i = 1 To numberOfWords + 1 For iteration = 0 To numberOfWords' either way SendKeys "+^{Left}", 1 Next iteration Wait 0.1 SendKeys "^c", 1 Wait 0.4 recognized = Clipboard Wait 0.4 'SendKeys "{Delete}", 1 End If ' ShellExecute "D:\CorrectThat\CorrectThat\bin\Release\CorrectThat.exe " & recognized ShellExecute "Z:\CoryJ\CorrectThat.exe " & recognized End Sub ------------------------- -Edgar |
|||||
|
|||||
![]() |
|||||
Sent you a PM about this.
|
|||||
|
FuseTalk Standard Edition v4.0 - © 1999-2021 FuseTalk™ Inc. All rights reserved.