dictation-toolbox / natlinkcore

Other
4 stars 4 forks source link

bug with Natlink and Dragon16: natlink.execScript #64

Open quintijn opened 7 months ago

quintijn commented 7 months ago

When calling natlink.execScript, Dragon freezes.

When running the testscript, the playEvents action is performed, but the windows error message shows up. playevents error 2024-02-03

(not the code as shown in the image has been changed a bit after it was taken). replace unimacroutils. by natlinkutils., as is now correct in the test file, (buttonclicktest.py in natlinkcore.tests)

The problem shows up with natlinkutils.buttonClick.

When you need this buttonClick function, you can circumvent via unimacroutils, then it runs via natlink.execScript, which also shows, that this function is working.

When the test script runs without Dragon is running, , the code runs (the right click is performed), but afterwards the "ESP" error is hit.

When Dragon is running, it freezes, and must be closed with the windows task manager.

quintijn commented 6 months ago

it also "hangs" with the test grammar _setlistbug.py, It is not easy to a speak a correct command, but see the example in line 3 of the script. (corrected, this was a fake message)...

quintijn commented 6 months ago

Above error message arose from a playString in the script. No new BUG. The upper example remains.

quintijn commented 6 months ago

trying to catch the calls natlink.playString, natlink.playEvents, natlink.buttonClick in the init.py file of natlink.

Help wanted, also with getting the unittests converted to pytest, if possible.