KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Lowercase/uppercase <text>
Topic Summary: How can I find/write a command like that?
Created On: 04/13/2019 03:24 PM
Status: Post and Reply
Linear : Threading : Single : Branch
 Lowercase/uppercase <text>   - missink - 04/13/2019 03:24 PM  
 Lowercase/uppercase <text>   - R. Wilke - 04/13/2019 03:47 PM  
 Lowercase/uppercase <text>   - missink - 04/13/2019 05:51 PM  
 Lowercase/uppercase <text>   - locution - 04/13/2019 08:06 PM  
 Lowercase/uppercase <text>   - Alan Cantor - 04/13/2019 10:34 PM  
 Lowercase/uppercase <text>   - Edgar - 04/14/2019 12:57 PM  
 Lowercase/uppercase <text>   - Lunis Orcutt - 04/14/2019 02:06 PM  
 Lowercase/uppercase <text>   - missink - 04/19/2019 04:41 PM  
 Lowercase/uppercase <text>   - locution - 04/19/2019 05:06 PM  
 Lowercase/uppercase <text>   - PG LTU - 04/19/2019 06:36 PM  
 Lowercase/uppercase <text>   - Scribe - 05/23/2019 11:56 AM  
 Lowercase/uppercase <text>   - PG LTU - 05/23/2019 02:35 PM  
Keyword
 05/23/2019 02:35 PM
User is offline View Users Profile Print this message

Author Icon
PG LTU
Top-Tier Member

Posts: 2229
Joined: 03/21/2007

Thx, Scribe! Of course, the easy solution for using the "[doing something to] that" commands to xyz text is to select the xyz text first. The following works in Word where the lowercase and uppercase natural language commands are emulated by my pgEmulate.vbs:

[lowercase_uppercase] [dictation]

    pgEmulate = "D:\path\to\pgEmulate.vbs " ' note the trailing space!!
    ShellExecute pgEmulate & """select " & ListVar2 & """", 6 ' select the dictation text
    Wait 2
    ShellExecute pgEmulate & """" & ListVar1 & " that""", 6 ' emulate the Word natural language command 
    Wait 2
    ShellExecute pgEmulate & """go back""", 6 ' go back to where you were


Hth,

 

EDIT: Btw, if you want these commands to work with native Dragon commands, too, you can add to your [lowercase_uppercase] list as follows:

all-caps\all caps
capitalize

lowercase

no-caps\no caps

uppercase

 

and modify the above as follows:

    pgEmulate = "D:\path\to\pgEmulate.vbs "
    ShellExecute pgEmulate & """select " & ListVar2 & """", 6
    Wait 2
    x = ListVar1
    If InStr(x,"\") Then x = "\" & Left(x, InStr(x,"\")-1) ' note the leading \
    ShellExecute pgEmulate & """" & x & " that""", 6
    Wait 2
    ShellExecute pgEmulate & """go back""", 6

 

Ht also h



-------------------------




PG





Remember folks, my comments and this forum are for entertainment value only, please, no wagering or other reliance on the contents herein.  I permit no commercial use of my ideas (whether expressions or embodiments) without my written consent.



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

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