:=
instead of
=
Read up on the difference in the AHK help as it's rather crucial
![Wink ;)](./images/smilies/icon_e_wink.gif)
Code: Select all
DGNSpeechEngine := ComObjCreate("Dragon.DgnEngineControl")
try
{
CMDGNSpeechEngine["Engine"].Register(0)
}
catch
{
MsgBox, Can´t access Dragon.
}
v:=DGNSpeechEngine.Option(0x11) // returns 0 if not set, -1 if set; setting the option with 1 seems to work fine though
msgbox, % v
v:=not DGNSpeechEngine.Option(0x11)
msgbox, % v
DGNSpeechEngine.Option(0x11):=v
v:=DGNSpeechEngine.Option(0x11)
msgbox, % v
DgnEngine.Unregister(0)
Users browsing this forum: Google [Bot], peter_ahk and 362 guests