Create "Read this" command (Dragon) to ask Dragon to read target segment in Trados

Hello everyone, 

I am trying my best to create new commands inside Dragon, but I can't figure out the code to be able to read target segments directly inside Studio (using the "Read this" function of Dragon), without having to open the Dictate box of Dragon.

I thought about using Windows' narrator, but I could find out how to just select and read text. 

Can anyone help? I use the French version of Studio, last version updated.

Thanks a lot!

Mathilde

Parents
  • Hi Mathilde,

    I use the following list command, created in KnowBrainer as a Dragon Voice Command (DVC), for Spanish:

    Command name: Leer <Leer_2>

    SetMicrophone 0
    If _arg1 = "That" Then SendKeys ""
    If _arg1 = "Document" Then SendKeys "{Ctrl+a}"
    If _arg1 = "All" Then SendKeys "{Ctrl+a}"
    If _arg1 = "Next Paragraph" Then SendSystemKeys "{Ctrl+Down}{Ctrl+Shift+Up}"
    If _arg1 = "Previous Paragraph" Then SendSystemKeys "{Ctrl+Down}{Ctrl+Shift+Down}"
    If _arg1 = "Line" Then SendSystemKeys "{Home}{Shift+End}"
    If _arg1 = "Segmento" Then SendSystemKeys "{Ctrl+PgUp}{Ctrl+Shift+Down}"
    If _arg1 = "Siguiente" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down}"
    If _arg1 = "Siguiente segmento" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down}"
    If _arg1 = "Siguientes tres segmentos" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down 3}"
    If _arg1 = "Siguientes cinco segmentos" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down 5}"
    If _arg1 = "Siguientes diez segmentos" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down 10}"
    If _arg1 = "Siguientes veinte segmentos" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down 20}"
    If _arg1 = "Anterior" Then SendSystemKeys "{Ctrl+PgUp}{Up}{Ctrl+PgUp}{Ctrl+Shift+Down}"
    If _arg1 = "Segmento anterior" Then SendSystemKeys "{Ctrl+PgUp}{Up}{Ctrl+PgUp}{Ctrl+Shift+Down}"
    If _arg1 = "Tres segmentos anteriores" Then SendSystemKeys "{Ctrl+PgUp}{Up}{Ctrl+PgDn}{Ctrl+Shift+Up 3}"
    If _arg1 = "Cinco segmentos anteriores" Then SendSystemKeys "{Ctrl+PgUp}{Up}{Ctrl+PgDn}{Ctrl+Shift+Up 5}"
    If _arg1 = "Diez segmentos anteriores" Then SendSystemKeys "{Ctrl+PgUp}{Up}{Ctrl+PgDn}{Ctrl+Shift+Up 10}"
    If _arg1 = "Hasta aquí" Then SendKeys "{Ctrl+Shift+Home}"
    If _arg1 = "Hasta el final" Then SendKeys "{Ctrl+Shift+End}"
    Wait 500
    SendKeys "{Ctrl+c}"
    Wait 500
    SendKeys "{Left}"
    Wait 250
    TTSPlayString ""
    SetMicrophone 1

Reply
  • Hi Mathilde,

    I use the following list command, created in KnowBrainer as a Dragon Voice Command (DVC), for Spanish:

    Command name: Leer <Leer_2>

    SetMicrophone 0
    If _arg1 = "That" Then SendKeys ""
    If _arg1 = "Document" Then SendKeys "{Ctrl+a}"
    If _arg1 = "All" Then SendKeys "{Ctrl+a}"
    If _arg1 = "Next Paragraph" Then SendSystemKeys "{Ctrl+Down}{Ctrl+Shift+Up}"
    If _arg1 = "Previous Paragraph" Then SendSystemKeys "{Ctrl+Down}{Ctrl+Shift+Down}"
    If _arg1 = "Line" Then SendSystemKeys "{Home}{Shift+End}"
    If _arg1 = "Segmento" Then SendSystemKeys "{Ctrl+PgUp}{Ctrl+Shift+Down}"
    If _arg1 = "Siguiente" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down}"
    If _arg1 = "Siguiente segmento" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down}"
    If _arg1 = "Siguientes tres segmentos" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down 3}"
    If _arg1 = "Siguientes cinco segmentos" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down 5}"
    If _arg1 = "Siguientes diez segmentos" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down 10}"
    If _arg1 = "Siguientes veinte segmentos" Then SendSystemKeys "{Down}{Ctrl+PgUp}{Ctrl+Shift+Down 20}"
    If _arg1 = "Anterior" Then SendSystemKeys "{Ctrl+PgUp}{Up}{Ctrl+PgUp}{Ctrl+Shift+Down}"
    If _arg1 = "Segmento anterior" Then SendSystemKeys "{Ctrl+PgUp}{Up}{Ctrl+PgUp}{Ctrl+Shift+Down}"
    If _arg1 = "Tres segmentos anteriores" Then SendSystemKeys "{Ctrl+PgUp}{Up}{Ctrl+PgDn}{Ctrl+Shift+Up 3}"
    If _arg1 = "Cinco segmentos anteriores" Then SendSystemKeys "{Ctrl+PgUp}{Up}{Ctrl+PgDn}{Ctrl+Shift+Up 5}"
    If _arg1 = "Diez segmentos anteriores" Then SendSystemKeys "{Ctrl+PgUp}{Up}{Ctrl+PgDn}{Ctrl+Shift+Up 10}"
    If _arg1 = "Hasta aquí" Then SendKeys "{Ctrl+Shift+Home}"
    If _arg1 = "Hasta el final" Then SendKeys "{Ctrl+Shift+End}"
    Wait 500
    SendKeys "{Ctrl+c}"
    Wait 500
    SendKeys "{Left}"
    Wait 250
    TTSPlayString ""
    SetMicrophone 1

Children