Hi, I am writing an external program to stop/restart Dragon and friends (Knowbrainer, Voice Computer) when the whole show hangs. I’m writing to ask if there is a preferred way (software API interface preferred) to ask VC to shut down nicely. Otherwise, I have to kill the process, which is a brute-force way that I would rather not use.
For example, Knowbrainer runs at some elevated level so it will not accept a WM_CLOSE message from my app. So, I just have to kill it.
With Dragon, I connect to the DragonBar engine and call the DragonBar.CloseDragonBar() method. After a while, if that doesn’t work, I kill the Dragon process too.
Is there a reachable VC window that will take a respectful WM_CLOSE message or an API available like the DragonBar.CloseDragonBar() method that will nicely disconnect VC from Dragon and shut down VC?
I also try to restart VC by calling Process.Start(voicecomputer.exe). I don’t know if that will work because I don’t have VC installed on my machine.
But after reading your nice answer in the recent “VoiceComputer can’t be closed thread” and other threads (“VC 13 starts D 13 then shuts down”), I’m thinking that you might recommend starting VC before Dragon (because VC will start Dragon too) - in which case I should not be trying to start Dragon again on a global restart sequence.
Thank you for your recommendations,
Kevin