Introduction to Natlink
Submitted by gary_the_wizzard on Sat, 02/13/2010 - 17:20.
Hi
fighting in the dark here, learning DNS, Python and vista all at the same time !!
Ok, I think I have installed python, natlink and DNS,
I can use DNS to dictate into Word, I can get up a python screen / command line and do things like print to the screen.
Using Python IDLE, I see DNS letting me speak / type into the screen.
Ok, how to I prove that natlink works ?
next step please ?
I'm sort of hoping for a test macro / applicaiotn that I can run from IDLE ?
Ta much, silly questions here, just getting over the first step,

Messages from Python Macros window
When NatSpeak start up, the "Messages from Python Macros" window should show up. If not, you should configure NatLink, see http://qh.antenna.nl/unimacro/installation/configu...
Quintijn
Have you trawled through the
Have you trawled through the scripts in the macro tracker section on this site? You should find some that are ready to go and try.
http://www.speechcomputing.com/mactracker
Mark
The easiest thing to do is
The easiest thing to do is to find the natlinkmain.py script wherever you installed it and make sure that after starting DNS, there is a corresponding natlinkmain.pyc (note the change of extension) in the same directory. This is an indication that the script has run because the PYC is the Python byte code corresponding to the script.
The next thing you can try is to open a plain python interpreter ( typically by typing in "python" in a command window console) and then doing import natlink. If that does not produce an error then try
natlink.natConnect()natlink.recognitionMimic(["hello","world"])
if you see 'hello world' pop up in the results box, then pretty much everything is working as can be expected. Managing the other scripts is a question of putting them in the right directory and making sure they are automatically loaded right way.
I hope that helps.