11.5

Table Of Contents
Chapter 11: Commands that perform actions based on the application state
Importing Sample Structured
Commands
You can import existing structured commands, such as the Structured Commands Samples, into
Dragon to use as templates for your own commands. Use the following procedure to import the
sample structured commands that are supplied with Dragon:
To import the sample structured commands:
1. On the
DragonBar
, select
Tools
>
Command Browser
to open the
Command Browser
window.
2. Click the
Manage
button on the
Command Browser
toolbar.
3. In the
Manage
area, click the
Import
button, and in the
Import Commands
window choose
MyCommands XML files
from the
Files of type
list.
4. Use the
Import Commands
window to browse to (in Windows XP) the following
directory:Documents and Settings\All Users\Application Data\N-
uance\NaturallySpeaking11\Data\Enx\samplecommands
See Dragon file structure for information on default locations on Windows Vista and other oper-
ating systems.
5. Select one of the sample
.XML
files (for example,
sampletgv_restaurant.xml
) and click
Open
.
6. Click
OK
on the
Import Commands
validation dialog box and then click
Import
on the
Import Commands
window to import the commands contained in the file.
7. Click
OK
on the success message and return to the
Manage
area of the
Command Browser
.
Note: The syntax of XML command files is defined by a document type definition (DTD) file
that resides on the Nuance web site. When you import an XML command file, the application
gives you the option of validating the syntax of the XML file against the DTD. The validation step
is useful if you receive a XML command file from another person and want to check it for syntax
errors prior to importing it.
To examine the sample code
1. Open the
Command Browser
and click the
Manage
button.
2. Expand and select the appropriate item (for example,
<restaurant_type>
Menu”
)
3. Click the
To Script
button and then click the
Edit
button.
The
MyCommands Editor
dialog box opens with the command you selected entered into it.
You can examine and modify the command with the
MyCommands Editor
.
327