04.03.2013 Views

Dragon NaturallySpeaking 12 Administrator Guide - Nuance

Dragon NaturallySpeaking 12 Administrator Guide - Nuance

Dragon NaturallySpeaking 12 Administrator Guide - Nuance

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Dragon</strong> <strong>12</strong> <strong>Administrator</strong> <strong>Guide</strong><br />

348<br />

Using Structured Commands<br />

<strong>Dragon</strong> <strong>NaturallySpeaking</strong> Professional, and <strong>Dragon</strong> Legal include an extension to Text-and-Graphics<br />

commands that let you to set the values of variables in text blocks based on voice input.<br />

You can create simple Text-and-Graphics commands with variables in the My Commands<br />

Editor without having to do extensive programming in Microsoft ® VBA.<br />

Application states<br />

Structured commands let you control the action of a command based on the state of the application.<br />

For example, if you assign a state to each field in a form, the same command can perform<br />

different actions depending on which field is activated.<br />

You can use Advanced Scripting methods to control the states within structured commands or<br />

to set the initial state from a non-structured command. You can also create structured commands<br />

that prompt the end-user to select values from a predefined list.<br />

When the end-user speaks a command, the end-user is presented with a list of pre-defined values<br />

for the command. Once the end-user selects a value, the value is inserted into the correct location<br />

in the custom command.<br />

Samples<br />

<strong>Dragon</strong> includes several sample Text-and-Graphics commands with variables and sample structured<br />

commands. You can import the samples into <strong>Dragon</strong> to use them as templates for your own commands.<br />

The sample commands are fully commented.<br />

For more information, see:<br />

n Structured Commands Samples<br />

n Importing Sample Commands<br />

Methods<br />

For more information on the methods used by the sample commands, refer to the following topics<br />

in the Main Help file:<br />

n Global Methods<br />

l SetState<br />

l GetState<br />

n EngineControl Methods<br />

l MyCommandsActiveState<br />

l PromptValue

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!