HeardWord

Causes Dragon to behave as if the specified word, word sequence, or voice command were received by the recognizer. You can use HeardWord to create a command that executes a series of other commands or that has the same function as an existing command but a different name.

Syntax

HeardWord "word1" [, "word2", . . .]

Argument

Description

word

A single word in the active Vocabulary or a single item in a command list. A list item can contain multiple words. When using a Dragon command as a argument (for example, "accept","defaults"), the commands must be in lowercase. Using uppercase will cause the commands specified for HeardWord to fail.

Up to eight word values can be specified, separated by commas. A series of word values is recognized as a single continuous phrase.

Example 1

This example types a closing remark, in bold type, at the end of a Dragon document.

HeardWord "go", "to", "bottom"
HeardWord "set", "font", "bold"
Wait 1
SendDragonKeys "{enter 2}" + "This document was dictated using Dragon."

Example 2

This example automates the task of copying text between windows.

HeardWord "copy", "all", "to", "clipboard"
HeardWord "switch", "to", "previous", "window"
HeardWord "paste", "that"

Notes

  • If a word has different written and spoken forms, use the written form for the word value. If a word in a list has different written and spoken forms, use the entire list entry.
  • Use a single backslash before dictation commands that do not have a written form. For example, use HeardWord "\no-caps". To see the words that need this treatment, open the Vocabulary Editor and scroll to the top.
  • To dictate a word with all capital letters, use the syntax HeardWord "all-caps" "word".
  • If a dictation Vocabulary word (such as "Academy Awards") consists of more than one dictionary word, put the Vocabulary word in a single argument.