9.0
299
your own commands. The sample commands are fully commented.
Sample location
The sample commands are installed in:
\Documents and Settings\All Users\Application
Data\Nuance\NaturallySpeaking9\Data\Enx\samplecommands
A shortcut to this directory is available on the Windows Start menu. To open this directory, click Start, point to
Programs, then point to Dragon NaturallySpeaking 8, and click Sample Commands.
Importing Sample Commands
You can import the samples into Dragon NaturallySpeaking to use them as templates for your own commands. For
information, see Importing Sample Commands
Samples
The following samples are included with Dragon NaturallySpeaking:
GroceryListSample_DragonPad
GroceryListSample_DragonPad.xml contains Advanced Scripting commands that simulate an on-line grocery
order form in DragonPad. It demonstrates how to set and change command states, activating and deactivating
various state structured commands, and how to use the command prompt. The voice command "Prepare
Grocery List" causes the first section of a grocery list to display in DragonPad and sets a command state. Each
section of the grocery list is designed to have a separate state. The voice command "What's Available" will
prompt the user with a set of grocery list commands that are active in the given section.
GroceryListSample_WordPad
GroceryListSample_WordPad.xml contains Advanced Scripting commands similar to those of
GroceryListSample_DragonPad.xml. It demonstrates how to set and change command states and to use the
command prompt in WordPad and uses a different coding style. The same voice command "Prepare Grocery
List" will start the grocery list in WordPad, activate the initial grocery list state, and prompt the user with a set
of grocery list commands that are active in the given state. To read more about this sample and its commands,
refer to the code comments in the XML file.
SampleBoilerPlate_ColonCancer
SampleBoilerPlate_ColonCancer.xml contains Advanced Scripting commands that demonstrate how to use
structured commands and the command prompt for boilerplate text. This sample is modeled after a colon
cancer checklist and is designed to work in Microsoft Word 2003. The voice command "Colon Cancer Checklist"
causes the boilerplate text to display and takes the user, field by field, through the checklist.
SampleBoilerPlate_EndoBiopsy
SampleBoilerPlate_EndoBiopsy.xml contains a single Advanced Scripting macro that demonstrates how to set
up boilerplate text and use the command prompt to guide users in filling the boilerplate text without using states.
This sample is modeled after an endoscopic biopsy report and is designed to work in Microsoft Word 2003. The
voice command "Prepare Endoscopic Biopsy Gross Template" causes the boilerplate text to display and takes
the user, field by field, through the report.
SampleTGV_Restaurant
SampleTGV_Restaurant.xml contains Text and Graphics and Advanced Scripting commands that are used in
DragonPad to simulate an ordering system for a Chinese and Japanese restaurant. This sample demonstrates
how to set states for structured commands as well as how the same commands can be used to produce different
results in different states. The voice command "Chinese Restaurant" or "Japanese Restaurant" starts the
ordering system and activates the structured commands created for the given state. The voice command "Exit
Ordering System" ends the ordering session.










