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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 11: Commands that perform actions based on the application state<br />

Structured Command Samples<br />

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

Advanced Scripting commands. You can import the samples into <strong>Dragon</strong> to use them as<br />

templates for your own commands. The sample commands are fully commented.<br />

Sample location<br />

The sample commands are installed in (Windows XP):<br />

\Documents and Settings\All Users\Application Data\<strong>Nuance</strong>\<strong>NaturallySpeaking</strong><strong>12</strong>\Data\Enx\samplecommands<br />

See <strong>Dragon</strong> file structure for information on default locations on Windows 7 and other operating<br />

systems.<br />

A shortcut to this directory is available on the Windows Start menu. To open this directory, click<br />

Start > Programs > <strong>Dragon</strong> <strong>NaturallySpeaking</strong> <strong>12</strong>.0 >MyCommands Samples.<br />

Importing Sample Commands<br />

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

information, see Importing Sample Commands<br />

Samples<br />

The following samples are included with <strong>Dragon</strong>:<br />

GroceryListSample_<strong>Dragon</strong>Pad<br />

GroceryListSample_<strong>Dragon</strong>Pad.xml contains Advanced Scripting commands that simulate<br />

an on-line grocery order form in <strong>Dragon</strong>Pad. It demonstrates how to set and change command<br />

states, activating and deactivating various state structured commands, and how to use the command<br />

prompt. The "Prepare Grocery List" voice command displays the first section of a<br />

grocery list in <strong>Dragon</strong>Pad and sets a command state. Each section of the grocery list is designed<br />

to have a separate state. The "What's Available" voice command prompts the end-user with a<br />

set of grocery list commands that are active in the given section.<br />

GroceryListSample_WordPad<br />

GroceryListSample_WordPad.xml contains Advanced Scripting commands similar to those<br />

of GroceryListSample_<strong>Dragon</strong>Pad.xml. It demonstrates how to set and change command<br />

states and to use the command prompt in WordPad and uses a different coding style. The "Prepare<br />

Grocery List" voice command starts the grocery list in WordPad, activate the initial grocery<br />

list state, and prompt the end-user with a set of grocery list commands that are active in the given<br />

349

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

Saved successfully!

Ooh no, something went wrong!