![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: Sharing my script library Topic Summary: Lots of KB macros shared on GitHub Created On: 05/13/2021 10:48 AM Status: Post and Reply |
|
![]() |
|
Hi. I am a longtime user of Dragon and former software engineer. I have been writing macros and utilities for my personal use with Dragon for quite some time and have amassed a lot of useful stuff. I have been wanting to share what I have with the community for quite some time and finally have managed to put it all on GitHub with some documentation to help folks figure out how to use it.
https://github.com/dfparent/dragon-tools Good luck and let me know how it goes.
|
|
|
|
![]() |
|
Thank you for sharing! Looks very interesting.
|
|
|
|
![]() |
|
Wow, this is really awesome! Thank you so much!
|
|
|
|
![]() |
|
Great Dragon companion commands! ------------------------- Change "No" to "Know" w/KnowBrainer 2020 |
|
|
|
![]() |
|
I really want to just get a few of them working as standalones, like camelcase and under case, but they don't seem to work unless I add in all of the dependencies. Any advice for getting these to work on their own without installing every file that gets referenced?
Great library though, thank you for sharing. ------------------------- Dragon Professional Individual v15.6. Windows 10. Knowbrainer 2017. |
|
|
|
![]() |
|
Hi wristofdoom! Probably the easiest thing to do in the long run is to create a C:\Users\Knowbrainer\CommonModules folder and put all the bas files in there. Then you can simply reference the bas file that contains the function you want in your macro, like '#Uses "C:\Users\KnowBrainer\CommonModules\utilities.bas"
That way, you don't have to copy anything around and can use any functions you want without extra work and all the references should work. There are a few macros that require MemoryForMacros which will take a little more set up, but the instructions are on my GitHub site. The "camel" and "under case" functions do not need MemoryForMacros, so copying all of the bas files into the new CommonModules ought to do it. Give it a shot and let me know! -Doug |
|
|
|
![]() |
|
Thanks a lot !
I cannnot mange to get these working : ' Save the contents of the clipboard for the current macro run Public Sub SaveClipboard() savedClipboardData = System.Windows.Clipboard.GetDataObject() End Sub
' Restores the previously saved clipboard data for the current macro run Public Sub RestoreClipboard() If Not savedClipboardData Is Nothing Then System.Windows.Clipboard.SetDataObject(savedClipboardData) savedClipboardData = Nothing End If End Sub
I put it all in my own uses reference, to which I added
Imports System.String Imports System.Collections.Generic option explicit
private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As System.IntPtr, ByRef lpdwProcessId As Integer) As Integer
Public Const CURRENT_WINDOW_HANDLE_VALUE = "Menus.CurrentWindowHandle" Public Const CURRENT_PROCESS_VALUE = "Menus.CurrentProcess"
Dim jiraUrl = "https://mc10inc.atlassian.net/browse/"
' Location for saving settings in registry ' Starting location is HKEY_CURRENT_USER\ Software\ VB and VBA Program Settings Dim registryAppName = "..\Douglas Parent\KBCommands" Dim registrySaveCommand = "SaveCommand" Dim registryCommandName = "CommandName" dim registryCommandValues = "CommandValues" Dim savedClipboardData As Object ' Only saves during a single macro run
But I needed to comment it in my editor, otherwise I got an error message.
What did I miss, please ?
Thanks ------------------------- 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 |
|
|
|
![]() |
|
DicDoc, Glad to see people are using (or trying to use) the macros! What error message are you seeing? Also please provide the contents of the macro itself (i.e. the text you enter into the KnowBrainer Command Editor). Thanks.
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.