9.0

278
function The name or number of the .DLL file function to call. If a number is used, do
not enclose the value in quotation marks. The value cannot be an expression.
argString The string containing the data to be passed to the dynamic-link function. The
value can be an expression. This argument is passed as the first (or only)
argument to the DLL function.
maxStringLengt
h
Maximum length of the string that the DLL can return as stringVariable.
Dragon NaturallySpeaking uses this argument to reserve space for the string
returned by the DLL call and passes it as the third argument to the DLL
function. The value can be an expression.
Return Value Description
integerVariable
&
The Dll function must return an integer. DllCall sets integerVariable& to this
value.
stringVariable$ The Dll function must return a string by reference. DllCall sets
stringVariable$ to the string value.
Notes
Improper use of the DllCall command can cause applications to hang and under some circumstances may
require you to restart the computer. In particular, you should make sure that the form of the call and the
argument string match the DLL function that you are calling.
You can use the DllCall command to add application extensions to the Dragon NaturallySpeaking scripting
language.
As a general rule, do not call Windows system .DLL files. However, you can write a DLL with functions that
convert the contents of the stringArg from a single string into the appropriate arguments for a Windows
DLL call and then make the required Windows calls.
This command loads and releases the DLL each time you use it. If you make frequent DLLCalls to the same
DLL, you can have another process load the DLL (and not unload it) to ensure that the DLL stays in
memory.
DragToPoint
Positions the pointer in the last RememberPoint position, and then holds the mouse button and moves the mouse
to the current pointer position.
Syntax
DragToPoint [buttons]
Argument Description
buttons A value indicating which button is to be pressed. To press multiple mouse buttons
simultaneously, add the values for each button to be pressed.
1 (default) left button (button 1)
2 right button (button 2)