![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: Change the capitalization of the following utterance? Topic Summary: Created On: 09/22/2021 03:49 PM Status: Post and Reply |
|
![]() |
|
When you add a new vocabulary word, you have the option to format the capitalization of words following the vocabulary word.
For example, I could create a custom vocabulary word called "new capitalized line" that does not actually enter any text, but inserts a new line, and then formats the following word to be printed in all caps. It's the same as the "new line" vocabulary word, except with control over capitalization of the text to follow; very useful.
I'm wondering if there is a way to re-create this behavior in an Advanced Scripting command, rather than custom vocabulary words.
For example, if I were to re-create the vocabulary word as an Advanced Scripting command, it would look something like:
Is there some way to control the formatting of any text that will follow, after the command has fully executed?
------------------------- Dragon Professional Individual v15.6. Windows 10. Knowbrainer 2017. |
|
|
|
![]() |
|
The following 2 commands have not been tested:
Option #1
Sub Main SendKeys "~" Wait 0.1 Str = ListVar1 arrStr = Split(Str," ") For i=0 To UBound(arrStr) word = UCase(arrStr(i)) str1 = str1 & word & " " Next SendKeys str1 End Sub
Sub Main SendKeys "~" Wait 0.1 HeardWord "all-caps-on" End Sub
------------------------- Change "No" to "Know" w/KnowBrainer 2020 |
|
|
|
![]() |
|
Thanks Lunis. I already have scripts to the effect of option 1, so I'm trying to address the case that option 2 addresses.
While option 2 does work, it is basically redundant, because I may as well simply say "{my command}", followed by "all caps {my utterance}" and spend the same amount of pauses and syllables to achieve the same effect--without relying on a custom command. I was hoping there was some magic function out there that can set capitalization for ONLY the following word, in the way that the vocabulary words can do, with without requiring the user to turn off a capitalization mode. Interesting that the vocabulary words give more advanced control over the capitalization of text to follow then an advanced script does ------------------------- Dragon Professional Individual v15.6. Windows 10. Knowbrainer 2017. |
|
|
FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.