poppe1219/dragonfly-scripts — pull request #22 by nirvdrum (2014-04-11 20:40:51+00:00)
Title: Dynamic aenea

This one is pretty big, so it deserves some review. But it seems to make working with Aenea a lot better for me. Basically with these changes grammars will work with both Windows and Linux at the same time. If the dictation capturing window is in the foreground then the commands will be routed to Linux, otherwise they will be treated as local Windows commands. This change does not require restarting NatLink.

The Aenea configuration value is still used to globally enable or disable Aenea, but the decision of where commands should be routed is handled dynamically.

This work isn't 100% complete, but I think it's good enough to merge and build on top of. For instance, I didn't handle the Mouse action, but none of the grammars in this repository seem to use it so I didn't prioritize it. The only lingering issue I'm aware of is when there is a difference in keystrokes between the two environments. I think this can be handled fairly simply and I plan on doing that.