KnowBrainer Speech Recognition
Decrease font size
Increase font size
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
Linear : Threading : Single : Branch
 11/23/2021 04:21 PM
User is offline View Users Profile Print this message

Author Icon
Top-Tier Member

Posts: 1419
Joined: 04/03/2009

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!


DPI 15.3, 64-bit Windows 10 Pro, OpenOffice & Office 365, Norton Security, Shure X2U XLR to USB mic adapter with Audio Technica DB135 vocal mic & Shokz OpenComm UC version 1 wireless headset, Asus X299-Deluxe Prime, Intel Core i9-7940X (14 core, 4.3 GHz overclocked to 4.9 GHz), G.SKILL TridentZ Series 64GB (4 x 16GB) DDR4 3333 (PC4 26600) F4-3333C16Q-64GTZ, NVIDIA GIGABYTE GeForce GTX 1060 GV-N1060G1 GAMING-6GD REV 2.0 6GB graphics card with 3 1920x1080 monitors

 11/23/2021 09:26 PM
User is offline View Users Profile Print this message

Author Icon
Advanced Member

Posts: 188
Joined: 03/25/2019

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. 



32634 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 1 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 221 guests browsing this forum, which makes a total of 222 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2023 FuseTalk™ Inc. All rights reserved.