Importing 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:
- From the DragonBar, select Tools>Command Center>Command Browser to open the Command Browser window.
- Click the Manage button on the Command Browser toolbar.
- In the Manage area, click the Import button, and in the Import Commands window choose MyCommands XML files from the Files of type list.
- Use the Import Commands window to browse to the directory. You'll find it in the following location:
- Select one of the sample .XML files (for example, sampletgv_restaurant.xml) and click Open.
- Click Yes on the Import Commands validation dialog box and then click Import on the Import Commands window to import the commands contained in the file.
- Click OK on the success message and return to the Manage area of the Command Browser.
Windows 7/Windows 8.1/Windows 10:
\ProgramData\Nuance\NaturallySpeaking15\Data\<language>\samplecommands
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
- Open the Command Browser and click the Manage button.
- Expand and select the appropriate item (for example, “<restaurant_type> Menu”)
- Click the To Script button and then click the Edit button.
The My Commands Editor dialog box opens with the command you selected entered into it. You can examine and modify the command with the My Commands Editor.
7/10/2020 6:49 AM