jay823001 / autokey

Automatically exported from code.google.com/p/autokey
GNU General Public License v3.0
0 stars 0 forks source link

Dragon Naturaly Speaking into Virtualbox #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 

Sorry it is not really an issue but I don't find where to ask for support.

I just want to know if Autokey could work like that:

*Autokey into Ubuntu linux, Dragon naturaly speaking into Virtualbox

Ubuntu: reply to an email

Execute following script when Hotkey:
-Select Virtualbox window
-Simulate keypress to activate microphone
-Select editor window

Then I "speech to text", text is writing into editor

Execute this other script with another hotkey:
-Simulate keypress to deactivate microphone
-Select all content of Virtualbox editor
-Copy selection
-Select Email reply window
-Paste text into Linux email reply window

Just an idea to simplify usage of Dragon with linux

Original issue reported on code.google.com by sebastie...@gmail.com on 18 Oct 2010 at 4:20

GoogleCodeExporter commented 9 years ago
So the editor is inside the Virtualbox session? It should theoretically be 
possible, but other users have reported that Virtualbox doesn't play very well 
with AutoKey. You can certainly give it a try...

Also for help, there is the users group. It is clearly linked from the home 
page so you can't miss it.

Original comment by cdekter on 18 Oct 2010 at 4:28

GoogleCodeExporter commented 9 years ago
Thanks for your prompt answer!

Yes, editor is Dragon editor inside Virtualbox session.

I made tests, seems to work but the only problem is that 
keyboard.send_key('<ctrl>+a') juste write an a letter in the editor, does not 
select all text.

My workaround is to use Autohotkey (!?) into windows xp to grab F10 key and 
convert it to CTRL+A

If someone is interested here is my script:

# Dragon Naturally automatic copy on Ubuntu
window.activate("Name of the window", switchDesktop=False)
keyboard.send_key('<f11>') #F11 configured into Dragon to enable or disable Mic
keyboard.send_key('<f10>') #F10 is converted in CTRL+A in windows (select all 
the text)
keyboard.send_key('<f9>') #F9 is converted in CTRL+C in windows (copy all the 
text)

With this: 
Launch script allow me to speech and launch again close mic and copy speeched 
content.
Next step is to past content in the window I want.

Faster than manualy, and virtualbox window can be hide so it never showing.

Original comment by sebastie...@gmail.com on 18 Oct 2010 at 8:02

GoogleCodeExporter commented 9 years ago
You can try keyboard.fake_keypress() instead of keyboard.send_key()

Original comment by cdekter on 18 Oct 2010 at 8:47

GoogleCodeExporter commented 9 years ago
Tryed keyboard.fake_keypress('<ctrl>+a')
but it does nothing

So i need another shortcut (ctrl+p) to pause virtualbox
tryed send_key and fake_keypress without any success

Hope we could find a solution because pausing is better for cpu usage.

Original comment by sebastie...@gmail.com on 18 Oct 2010 at 9:26

GoogleCodeExporter commented 9 years ago
There are no other solutions, Virtualbox does weird things with keystrokes so 
I'm afraid there's nothing further I can suggest.

Original comment by cdekter on 18 Oct 2010 at 9:37

GoogleCodeExporter commented 9 years ago
Thanks. Find a solution: sending ctrl+p to VirtualBox launcher window, not 
windows xp one seems to work :)
Just need to make a test to know if virtualbox is paused or not (based on the 
title) and it will rocks!
Your soft is really usefull, thanks for that.

Original comment by sebastie...@gmail.com on 18 Oct 2010 at 9:58