9.0
287
RunScriptFile
Runs a Dragon NaturallySpeaking script contained in the specified file. The script file can contain only valid Dragon
NaturallySpeaking scripting commands.
Syntax
RunScriptFile "fileName"
Argument Description
fileName The name of the file containing the Dragon NaturallySpeaking script to be run. The
file must be in ANSI text format.
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.
Example
This example runs a script contained in a file named Automate.txt.
RunScriptFile "Automate.txt"
SendDragonKeys
Sends keystrokes to the active window. If SendDragonKeys fails to send the specified keystrokes, try using
SendSystemKeys.
Syntax
SendDragonKeys "type this"
Argument Description
type this The keystrokes to be sent to the active window. Enclose the names of nonprinting
keys in braces ({ }). To specify a shift-key combination, enclose the modifier key
name (such as Alt), a plus sign (+), and the shifted key in braces. To repeat a
keystroke or key combination, enclose the key name, a space, and the number of
repetiitions in braces.
Example 1
This instruction sends three CTRL+RIGHT keystrokes to the active window.
SendDragonKeys "{Ctrl+Right 3}"
Example 2
This example carries out the Set Font <Face> command by sending the Font dialog box access keys and the value
of the list variable ListVAR1 (the keystrokes that set the font to the spoken face). Plus signs are used to
concatenate the keystroke strings and the variable.
SendDragonKeys "{Alt+o}f{Alt+f}"+ListVAR1+"{Enter}"










