![]() |
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 |
|
![]() |
![]() |
- dparent | - 05/13/2021 10:48 AM |
![]() |
![]() |
- Matt_Chambers | - 05/13/2021 10:53 AM |
![]() |
![]() |
- thalon | - 05/14/2021 12:11 PM |
![]() |
![]() |
- Lunis Orcutt | - 05/14/2021 04:40 PM |
![]() |
![]() |
- wristofdoom | - 05/14/2021 06:44 PM |
![]() |
![]() |
- dparent | - 05/25/2021 10:44 AM |
![]() |
![]() |
- dicdoc | - 11/12/2021 07:55 PM |
![]() |
![]() |
- dparent | - 11/13/2021 12:33 PM |
![]() |
|
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-2023 FuseTalk™ Inc. All rights reserved.