Austin English wrote:
You may be able to use AutoHotKey to cut and paste for you more
automatically (http://www.autohotkey.com/).
I don't believe a hotkey will work in this application. It appears it would
only work in the wine environment and not have any effect on the linux side. The
timeline and contexts shifts outlined below might make this clearer.
[Linux]
Switch to application thunderbird
Bring up the message composer
click on the compose window
[wine]
switch to first notepad
Dictate message
copy the buffer
[Linux]
switch to Thunderbird
click on compose window
paste buffer into compose window
[wine]
Switch to first notepad
dictate more text
[wine]
start second notepad
switch to second notepad
dictate more text
copy the buffer
[Linux]
Switch to instant messenger
select message window
paste buffer
[wine]
switch to first notepad
copy buffer
[Linux]
switch to Thunderbird compose
select message window
paste buffer
-------------------------
In order to make this work, I need to know the context of the active application
at the time dictation starts. Then during the dictation time, switch context to
the editor window associated with the application, injected text into the editor
if it's plain dictation other wise take the output from a grammar activator
program and stuff it in the X11 keystroke stream. When dictation finishes,
return focus to the formerly active application.
In thinking about what would be the minimum acceptable setup, a simple ping-pong
between an active application and an editor should be okay about 80% of the time
if something like natlink+python was available. Activating adding and
terminating editing by explicit commands shouldn't be too onerous as that's what
we use today with the current dictation box capability.
Shifting the topic slightly, natlink is a wrapper around a com interface to
NaturallySpeaking. How difficult would it be to make that something that can
cross the wine/ linux boundary?