Get functions
Get data mainly from natlinkmain and NatLink.
Also see link("/installation/technicaldetails/natlinkmain.html", "the page about natlinkmain").
It is best NOT to import natlinkmain from a Unimacro grammar, but get the wanted information through these functions:
function | returns |
getLanguage | returns the three letter code of the language of the speech profile. 'enx' for English, 'nld' for Dutch etc |
getDNSversion | return, as integer, the version number of NatSpeak. Older versions in "nssystem.ini", newer versions (from 7 up) look in the registry. |
getUser | get, as a string, the name of the current speech profile |
getWindowsVersion | at this moment are known: 'XP', '2000', 'NT4', 'NT351', '98' |
getModuleFilename | the complete path of the calling grammar/manual, has stored in natlinkmain |
getUnimacroFolder | the folder natlinkutilsqh.py is in, should be the NatLink (natpython) user directory. |
getBaseName(name) | returns to base name (without directory and without extension) of name |
|