9.0
298
• If the command name contains punctuation (for example, "What Time Is It?"), did you verbalize the
punctuation?
Structured Commands
About Structured Commands
Dragon NaturallySpeaking Professional, Medical and Legal include an extension to text and graphics commands
that let you to set the values of variables in text blocks based on voice input.
You can create simple text and graphics commands with variables in the My Commands Editor dialog box
without
having to do extensive programming in Microsoft® VBA.
Application states
Structured commands let you control the action of a command based on the existence of a state in the application.
For example, when you assign a state to each field in a form, the same command can perform different actions
depending on which field is activated.
You can use Advanced Scripting
methods to control the states within structured commands or to set the initial state
from a non-structured command. You can also create structured commands that prompt the user to select values
from a predefined list.
When the user speaks a command, the user is presented with a list of pre-defined values for the command. Once
the user selects a value, the value is inserted into the correct location in the macro.
Samples
Dragon NaturallySpeaking includes several sample text and graphics commands with variables and sample
structured commands. You can import the samples into Dragon NaturallySpeaking to use them as templates for
your own commands. The sample commands are fully commented.
For more information, see:
Structured Commands Samples
Importing Sample Commands
Methods
For more information on the methods used by the sample commands, refer to the following:
Global Methods
SetState
GetState
EngineControl Methods
MyCommandsActiveState
PromptValue
Structured Commands Samples
Dragon NaturallySpeaking includes several sample text and graphics commands with variables and sample
structured commands. You can import the samples into Dragon NaturallySpeaking to use them as templates for










