![]() |
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 |
![]() |
|
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 |
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.