this post is going to walk you through the steps of controlling jaws for Windows from Dragon naturally speaking. You cannot speak the keystrokes to control Jaws for Windows directly since the Jaws keyboard driver runs at a lower level than Dragon’s keyboard driver. There are two ways you can control jaws from Dragon.. One way is to use the com interface that Jaws provides. The second way is to call Jaws scripts. I am going to be showing the second way since I’m assuming that you have J-Say technology installed.
The first thing you need to do is to determine the name of the script you want to call. You can see the name of the script from the Jaws scripting manager or by looking at the Jaws keyboard manager. Once you have that information, you can begin writing your command. We will use the example of initiating a jaws tandem session. This is a globally defined jaws script and is not in the set of current J-Say commands. A jaws tandem session is initiated by calling the StartOrEndTandemSession script.
I am going to assume that the StartOrEndTandemSession script is installed and working.
1. Go to the desktop.
2. From the tools menu of dragon, invoke the “add new command” dialog. If you have dragon running, say “add command”.
3. Dictate or type a name and a description.
4. Make the command a global command as well as an advanced scripting command.
Note:
On my computer, the combo box to select the type of the command is not spoken automatically. You may have to use the Jaws read current line command to read the value that has been selected in the combo box.
5. Keep tabbing until you reach an edit area where you can type your script. 6. A set of begin and end statements will already be inserted for you. 7. Between them, enter the following line.
DllCall “MSGW1004″,”JFWRunScript”,”StartOrEndTandemSession”
Note:
I do not know what MSGW1004 stands for but I suspect, after reading the help it is a dll name.
8. Now, activate the jaws cursor and click the save button. This is found at the bottom of the scripting edit area.
9. Assuming there are no errors, you will be back at the desktop or perhaps in the command browser.
10. In any case, your command is ready now so all you now need do is to speak the name of the command and it should work.
You can have as many dllCall statements as you want in a script. The key thing to remember is that the Jaws and Dragon scripts should be synchronized that is they should be loaded at the same time otherwise, if the Dragon commands are loaded and the Jaws script files are absent, you will get an “unknown script call” to the script if you speak the relevant Dragon command.
Let us look at another example. I have created a macro in Outlook that deletes messages that have the same thread. I need to invoke this macro when I say “delete thread”. The Dragon command is below. I have added comments to each statement.
Sub Main
DllCall “MSGW1004″,”JFWRunScript”,” SpeechOff” ‘turn jaws speech off SendDragonKeys “{alt+f8}” ‘invoke the macro ecxecution dialog SendDragonKeys “{alt+r}” ‘only 1 macro in outlook so run it
DllCall “MSGW1004″,”JFWRunScript”,” SpeechOn” ‘enable jaws speech End Sub