13.0

Table Of Contents
Chapter 11: Commands that
perform actions based on the
application state
This section contains information how to create and use structured commands that
perform actions based on the state of the application.
About Structured Commands
Dragonincludesanextensiontotextandgraphicscommandsthatletsyousetthevaluesof
variablesintextblocksbasedonvoiceinput.
YoucancreatesimpletextandgraphicscommandswithvariablesintheMyCommandsEditor
dialogboxwithouthavingtodoextensiveprogramminginMicrosoft
®
VBA.
Application states
Structuredcommandsletyoucontroltheactionofacommandbasedontheexistenceofastatein
theapplication.Forexample,whenyouassignastatetoeachfieldinaform,thesamecommand
canperformdifferentactionsdependingonwhichfieldisactivated.
YoucanuseAdvancedScriptingmethodstocontrolthestateswithinstructuredcommandsorto
settheinitialstatefromanon-structuredcommand.Youcanalsocreatestructuredcommandsthat
prompttheusertoselectvaluesfromapredefinedlist.
Whentheuserspeaksacommand,theuserispresentedwithalistofpre-definedvaluesforthe
command.Oncetheuserselectsavalue,thevalueisinsertedintothecorrectlocationinthe
macro.
Samples
Dragonincludesseveralsampletextandgraphicscommandswithvariablesandsample
structuredcommands.YoucanimportthesamplesintoDragontousethemastemplatesforyour
owncommands.Thesamplecommandsarefullycommented.
Formoreinformation,see:
268