![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: Strange issue with macro command Topic Summary: Double-pasting Created On: 10/27/2019 03:44 AM Status: Post and Reply |
|
![]() |
![]() |
- adrienneiii | - 10/27/2019 03:44 AM |
![]() |
![]() |
- dilligence | - 10/27/2019 08:48 AM |
![]() |
![]() |
- Lunis Orcutt | - 10/27/2019 11:39 AM |
![]() |
![]() |
- PG LTU | - 10/27/2019 04:03 PM |
![]() |
![]() |
- adrienneiii | - 10/29/2019 04:17 PM |
![]() |
![]() |
- dilligence | - 10/29/2019 05:17 PM |
![]() |
![]() |
- adrienneiii | - 10/30/2019 06:49 PM |
![]() |
![]() |
- Lunis Orcutt | - 10/30/2019 08:56 PM |
![]() |
![]() |
- Matt_Chambers | - 10/30/2019 09:52 PM |
![]() |
![]() |
- adrienneiii | - 11/01/2019 12:58 PM |
![]() |
|
Hi there, I am using Dragon with some specialized translation software. I open a dictation box in the software, do my thing in there with Dragon, and then I click the Transfer button by saying "Click Transfer", which pastes my text into the main window of the translation software.
|
|
|
|
![]() |
|
Are you using the default Dragon Dictation box? You could try a very simple SendSystemKeys command depending on the Tab order of the Transfer button of the Dragon box (probably 3). You could then give it the exact same name as the button label because the voice command name will take precedence:
Transfer
SendSystemKeys "{Tab 3}" SendSystemKeys "{Enter}"
With the SP Dictation Boxes you have the additional option to use the "Transfer Now" command which bypasses the TRANSFER button but still transfers your text to the target application.
SP also gives you a third option to transfer the text by pressing the TRANSFER (and CANCEL) button by means of an external executable. This makes it even easier to program these buttons in (lengthy) DVC command scripts.
Then of course there's the somewhat clunky "if all else fails" solution by using any dictation box or text editor as a simple text holder:
SendSystemKeys "{Ctrl+a}" SendSystemKeys "{Ctrl+x}" SendSystemKeys "{Alt+F4}" SendSystemKeys "{Ctrl+v}" ------------------------- Auto Box - SP Editor - HyperNotes - Hotkeys for Dragon - Quick Correct - Press Utility - Easy Guide to Dragon Scripting |
|
|
|
![]() |
|
Our 1st recommendation would be to NEVER use Dragon's Macro Recorder. It is a toy just waiting to malfunction and even in the best situation, it will deploy in real-time which is about as slow as watching paint dry.
Our 1st question is why didn't you stick with saying click transfer which appears to be doing exactly what you want? If you wish to create a shorter version, rather than using Dragon recorder, try creating an Advanced-Scripting command. However, if you are using a specialized Dictation Box, that is included in your translation utility, find out what the hotkey is and create a script such as the following, which would be designed for the Dragon Dictation Box. You may have to replace the "t" in the following script, for your transcription utility. Also note that when you create a Dragon Advanced-Scripting command (VBA), Sub Main & End Sub are created automatically. All you need is the middle line. SendKeys "%t" End Sub ------------------------- Forum Mission Statement |
|
|
|
![]() |
|
Or even better, use SendSystemKeys which is more and more reliable the more unfriendly to Dragon your translation application might be. -------------------------
|
|
|
|
![]() |
|
Thanks so much for all these replies, which I only just found in my spam folder!
Liking the SendKeys solution, which I tried first, and it works really well. Saying "Click Transfer" is a bit of a pain actually compared to the word I'm using (I have to say it every few seconds bear in mind), but in addition I'd now like to add in another step, which is to press Ctrl-Down (which moves me to the next segment in my translation file). Could one of you tell me what command I should include after SendKeys to do that? Thanks so much! |
|
|
|
![]() |
|
Advanced Scripting:
SendKeys "^{Down}"
DVC Script:
SendKeys "{Ctrl+Down}"
You may need to use SendSystemKeys instead of SendKeys ------------------------- Auto Box - SP Editor - HyperNotes - Hotkeys for Dragon - Quick Correct - Press Utility - Easy Guide to Dragon Scripting |
|
|
|
![]() |
|
Thanks dilligence, I don't know why but this isn't working:
Sub Main SendKeys "%t" SendKeys "^{Down}" End Sub For some reason it does Ctrl down FIRST, and paste afterwards. Can't imagine why that would be. Switching it around doesn't work of course. Any further ideas? Appreciate it! If you think I should use SendSystemKeys, I'd be really grateful if you could guide me as to the whole script. |
|
|
|
![]() |
|
Try the following 3:
Sub Main SendKeys "%t" Wait 1 SendKeys "^{Down} End Sub or Sub Main HeardWord "click,"tranfer" Wait 1 SendKeys "^{Down} End Sub or Sub Main HeardWord "click,"tranfer" Wait 1 HeardWord "press,"control","down" End Sub ------------------------- Forum Mission Statement |
|
|
|
![]() |
|
Why not try: SendKeys "%t",1 SendKeys "^{Down}"
The ",1" at the end of line 1 is supposed to ensure that that line of code executes before the next line. |
|
|
|
![]() |
|
Thanks so much to all of you, dilligence's first solution seems to have worked a treat, but I'll keep the others in store in case anything goes wrong!
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2021 FuseTalk™ Inc. All rights reserved.