9.0
285
Parameters
Argument Description
StateName The name of the active MyCommands Structured State.
PlaySound
Plays the specified sound file. This command turns the microphone off while the sound plays. The next command
in the script executes when the sound file stops playing.
Syntax
PlaySound "fileName.wav"
Argument Description
fileName.wa
v
The name of the sound file to play and, optionally, its path. If no path is specified,
the file must be in the Dragon NatuallySpeaking Program folder or in a directory
that is searched when Windows starts a program. The .wav extension is not
needed.
Example
This example plays the standard Windows chimes sound.
PlaySound "C:\Windows\Media\Chimes.wav"
PromptValue Function
Syntax
Visual Basic
DgnEngineControl.PromptValue( Values As String, Description As String, Optional X As Long = -1,
Optional Y As Long = -1 ) As String
C++
HRESULT IDgnEngineControl::PromptValue (SAFEARRAY (BSTR)* Values, BSTR Descrription, int X, int
Y, BSTR * ChosenValue);
Description
Displays a Prompt box with a list of values from which the user can select an option. This allows you to create
scripting commands with behavior that is dependent on the user's response. While the Prompt box is active, the
user can select a value via mouse or voice.










