13.0

Table Of Contents
Dragon 13 Administrator Guide
StructuredCommandsSamples
ImportingSampleCommands
Methods
Formoreinformationonthemethodsusedbythesamplecommands,refertothefollowing:
n GlobalMethods
SetState
GetState
n EngineControlMethods
MyCommandsActiveState
PromptValue
Structured Commands Samples
Dragonincludesseveralsampletextandgraphicscommandswithvariablesandsample
structuredcommands.YoucanimportthesamplesintoDragontousethemastemplatesfor
yourowncommands.Thesamplecommandsarefullycommented.
Sample location
Thesamplecommandsareinstalledin:
n Windows 7, Windows 8:
\Pro-
gramData\Nuance\Nat-
urallySpeaking13\Data\<language>\samplecommands
AshortcuttothisdirectoryisavailableontheWindowsStartmenu.Toopenthisdirectory,
clickStart>AllPrograms>DragonNaturallySpeaking13DragonMedicalPracticeEdition>
MyCommandsSamples.InWindows8MyCommandsSamplescanbeopenedfromthe
Appsscreen.
Importing Sample Commands
YoucanimportthesamplesintoDragontousethemastemplatesforyourowncommands.
Forinformation,seeImportingSampleCommands
Samples
ThefollowingsamplesareincludedwithDragon:
GroceryListSample_DragonPad
GroceryListSample_DragonPad.xmlcontainsAdvancedScriptingcommandsthat
simulateanon-linegroceryorderforminDragonPad.Itdemonstrateshowtosetand
changecommandstates,activatinganddeactivatingvariousstatestructuredcommands,
andhowtousethecommandprompt.Thevoicecommand"PrepareGroceryList"causes
thefirstsectionofagrocerylisttodisplayinDragonPadandsetsacommandstate.Each
sectionofthegrocerylistisdesignedtohaveaseparatestate.Thevoicecommand
"What'sAvailable"willprompttheuserwithasetofgrocerylistcommandsthatareactive
inthegivensection.
269