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 />

Importing Sample Structured<br />

Commands<br />

You can import existing structured commands, such as the Structured Commands Samples, into<br />

<strong>Dragon</strong> to use as templates for your own commands. Use the following procedure to import the<br />

sample structured commands that are supplied with <strong>Dragon</strong>:<br />

To import the sample structured commands:<br />

1. On the <strong>Dragon</strong>Bar , select Tools > Command Browser to open the Command Browser<br />

window.<br />

2. Click the Manage button on the Command Browser toolbar.<br />

3. In the Manage area, click the Import button, and in the Import Commands window choose<br />

MyCommands XML files from the Files of type list.<br />

4. Use the Import Commands window to browse to (in Windows XP) the following<br />

directory: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 />

5. Select one of the sample .XML files (for example, sampletgv_restaurant.xml) and click<br />

Open.<br />

6. Click OK on the Import Commands validation dialog box and then click Import on the<br />

Import Commands window to import the commands contained in the file.<br />

7. Click OK on the success message and return to the Manage area of the Command Browser.<br />

Note: The syntax of XML command files is defined by a document type definition (DTD) file<br />

that resides on the <strong>Nuance</strong> web site. When you import an XML command file, the application<br />

gives you the option of validating the syntax of the XML file against the DTD. The validation step<br />

is useful if you receive a XML command file from another person and want to check it for syntax<br />

errors prior to importing it.<br />

To examine the sample code<br />

1. Open the Command Browser and click the Manage button.<br />

2. Expand and select the appropriate item (for example, “ Menu”)<br />

3. Click the To Script button and then click the Edit button.<br />

The MyCommands Editor dialog box opens with the command you selected entered into it.<br />

You can examine and modify the command with the MyCommands Editor.<br />

351

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

Saved successfully!

Ooh no, something went wrong!