![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: needing a command that capitalises a word that is already typed (in Edge) Topic Summary: in non-Dragon friendly applications. Created On: 11/22/2021 12:42 AM Status: Post and Reply |
|
![]() |
![]() |
- Anandits | - 11/22/2021 12:42 AM |
![]() |
![]() |
- Lunis Orcutt | - 11/22/2021 11:38 AM |
![]() |
![]() |
- Anandits | - 11/22/2021 09:55 PM |
![]() |
![]() |
- Edgar | - 11/22/2021 12:10 PM |
![]() |
![]() |
- dilligence | - 11/22/2021 05:30 PM |
![]() |
![]() |
- Anandits | - 11/22/2021 10:03 PM |
![]() |
![]() |
- Anandits | - 11/22/2021 09:59 PM |
![]() |
![]() |
- Edgar | - 11/23/2021 04:21 PM |
![]() |
![]() |
- Anandits | - 11/23/2021 09:26 PM |
![]() |
![]() |
- Edgar | - 11/24/2021 11:49 AM |
![]() |
|
There are a few hidden assumptions in this request: 2) or are you talking about the blinking | (vertical bar) which indicates where the insertion of the next text will occur 2a) if 2, what happens if the | is blinking immediately in front of the first letter of the word, immediately behind the last letter of the word, or somewhere in the middle of the word 3) is the word in an "editable" field (in a browser you can select a word - and, e.g., copy it - but not be permitted to paste; this would be an edge case error which would be difficult to code for)? ------------------------- -Edgar |
|
|
|
![]() |
|
Irene,
I'm pretty sure that Edgar will come up with something much more sophisticated
I've got something a little faster in mind which I will add to my programs later. In the meantime, here's a video example and the DVC Script:
Upper word
HeardWord "select","word" Wait 500 SendSystemKeys "{Ctrl+x}" Wait 300 AppBringUp "C:\Program Files (x86)\Speech Productivity\dictation box top left\dictation box.exe" Wait 400 SendSystemKeys "{Ctrl+v}" SendSystemKeys "{Ctrl+a}" HeardWord "\cap","that" SendSystemKeys "{Space}" SendSystemKeys "{Tab}" SendSystemKeys "{Enter}" ------------------------- Turbocharge your Dragon productivity with 40+ Power Addons |
|
|
|
![]() |
|
Thank you, Diligence. I appreciate you making this script. I copied it and it works fine technically; but it is too slow to really be useful. I would love something that can do this in the blink of an eye!
But may be I am asking something impossible. |
|
|
|
![]() |
|
Thank you, Edgar. I was thinking that I would put the | (vertical bar) in the middle of word and then execute the command. But this involves having to click first. If it could be done by only pointing at a word, that would even be better.
This would be in Google Docs. So yes, this would be in an editable field. |
|
|
|
![]() |
|
Sub Main ButtonClick 1, 2' double-left click - selects the word under the mouse pointer SendKeys "^c", 1' copies the selected word to the clipboard Wait 0.3' some machines might require slightly more and others might get by with less or none selectedWord = Clipboard Wait 0.3 firstLetter = Mid (selectedWord, 1, 1) firstLetter = UCase (firstLetter) capitalizedWord = firstLetter ' if the word is more than one letter long… letters = Len (selectedWord) If letters > 1 Then theRestOfTheWord = Mid (selectedWord, 2) capitalizedWord = capitalizedWord & theRestOfTheWord End If SendKeys capitalizedWord, 1 End Sub
I tested the above as a Dragon Advanced Script (DPI 15.3). Someone more knowledgeable with DVC scripting might be able to turn it into a faster DVC version. It is not quite "in the blink of an eye" as presented above! ------------------------- -Edgar |
|
|
|
![]() |
|
Edgar, thank you so much. This works beautifully. It is fast enough to still be practical. And I managed to use the same script with just a one letter tweak to make it do the opposite. I have to do a lot of proofreading in Google docs and this script will be so helpful for me! thank you very much for your time.
|
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.