Here is a module called "SetNatTx.dll". This module allows you to turn NaturalText on and off from a macro. NaturalText is the NaturallySpeaking feature which allows you to dictate into any Windows application. However, sometimes you want to turn NaturalText off so your command recognition is more accurate.
|
You can turn NaturalText on and off using the speech bubble icon on the task bar ( ). You can also turn NaturalText on and off by pressing the * key on the keypad. However, both of these actions toggle the state of NaturalText. If you do not know whether NaturalText is currently on or off then you can not write reliable macros using either of these two methods of controlling NaturalText. |
|
| SetNatTx works by changing the registry variable which is a master override for NaturalText. If you set NaturalText off using SetNatTx then NaturalText will be disabled regardless of the state of the speech bubble on the task bar. This means that you can always force NaturalText to be turned off. If you enable NaturalText with SetNatTx then NaturalText will be turned on if and only if the speech bubble icon on the task bar is blue. |
|
| I'm providing this module for users of Dragon NaturallySpeaking to use at your own risk. I have included both the executable code and the source code in the file SetNatTx.zip. The source code is also on line on the page Source Code for SetNatTx. |
|
| You can call SetNatTx.dll using Dragon NaturallySpeaking scripting language command "DllCall". As an example, the following macro demonstrates how use SetNatTx. |
|
| First, copy SetNatTx.dll to your Windows directory. (You can actually use any directory, but I am using the Windows directory in this example.) |
|
| Now, create the following macro: |
|
| Command name: Turn NaturalText <onOff> |
|
| Application name: Global Commands |
| |
 |
if _arg1 = "on" then DllCall "C:\Windows\SetNatTx", "SetNaturalText", "1" |
| |
 |
if _arg1 = "off" then DllCall "C:\Windows\SetNatTx", "SetNaturalText", "0" |
| |
 |
on |
| |
 |
off |
|
| This macro will turn NaturalText on or off. Warning: if NaturalText is turned on and you turn it off using this macro then the speech bubble icon on the taskbar will not change but NaturalText will be disabled. |
|