raghuram534 / autokey

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

send_key doesn't work in predictive search inputs #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Script using send_key/send_keys/fake_keypress
2. Try to use in firefox awesome bar/google/gmrun

What is the expected output? What do you see instead?
Script's send arrow key's etc and are according to the log's

DEBUG - service - Raw key: u'h', modifiers: ['<super>'], Key: u'h'
INFO - service - Matched hotkey phrase/script with prompt=False
DEBUG - service - Script runner executing: Script('arr_left')
DEBUG - interface - Send special key: [u'<left>']

but nothing happening.

What version of the product are you using? On what operating system?
0.71.0.1, debian

Please provide any additional information below.
Guess they're doing their own listening?

Original issue reported on code.google.com by tpowe...@gmail.com on 11 Aug 2010 at 5:30

GoogleCodeExporter commented 8 years ago
If both send_key and fake_keypress don't work, there is no way to fix it (those 
are the only two available methods in X of generating key events).

Original comment by cdekter on 11 Aug 2010 at 10:04

GoogleCodeExporter commented 8 years ago
fair enough thanks, maybe i can turn something off in ff

Original comment by tpowe...@gmail.com on 11 Aug 2010 at 10:45

GoogleCodeExporter commented 8 years ago
Actually if the backtrace you posted on the other bug just a little while ago 
was produced at the time this bug was occurring, it might be something else. 
Can you get me a log produced during execution of your script with firefox?

Original comment by cdekter on 11 Aug 2010 at 11:03

GoogleCodeExporter commented 8 years ago
Sure this is from just now, i've changed to 70.0.5 since the one above btw

DEBUG - interface - New window mapped, grabbing hotkeys
DEBUG - interface - New window mapped, grabbing hotkeys
DEBUG - interface - New window mapped, grabbing hotkeys
DEBUG - interface - New window mapped, grabbing hotkeys
DEBUG - interface - New window mapped, grabbing hotkeys
DEBUG - iomediator - <super> pressed
DEBUG - service - Key: u'j', modifiers: ['<super>']
INFO - service - Matched hotkey phrase/script with prompt=False
DEBUG - service - Script runner executing: Script('arr_down')
DEBUG - interface - Send special key: [u'<down>']
DEBUG - iomediator - <super> released

Original comment by tpowe...@gmail.com on 11 Aug 2010 at 11:17

GoogleCodeExporter commented 8 years ago
PS: it's been very consistent in it's not working in google/firefox etc, some 
mention of something similar here for ironahk if that makes any sense? 
http://www.autohotkey.com/forum/topic34421-45.html

Tobias has written X11 hooks which uses polling to capture events in GTK 
windows that use non-standard registers such as gnome-do and the awesome bar in 
Firefox.

Original comment by tpowe...@gmail.com on 11 Aug 2010 at 11:32

GoogleCodeExporter commented 8 years ago
Hmm now I don't see any issue any more... oh well

Original comment by cdekter on 11 Aug 2010 at 11:32

GoogleCodeExporter commented 8 years ago

Original comment by cdekter on 12 Aug 2010 at 1:36

GoogleCodeExporter commented 8 years ago
Just to say, i get the behaviour i want in firefox if i use phrases that 
contain the key (i.e. <down>) rather than send_key, crashes a fair bit though! 
:¬)

Original comment by tpowe...@gmail.com on 14 Aug 2010 at 9:26

GoogleCodeExporter commented 8 years ago
... or if i use send_keys instead of send_key to send single keys! Combinations 
are always fine.

Original comment by tpowe...@gmail.com on 14 Aug 2010 at 9:37

GoogleCodeExporter commented 8 years ago
That's really weird, the underlying code is the same. Might be some kind of 
timing-sensitive bug I guess. At least you got it working...

Original comment by cdekter on 14 Aug 2010 at 9:45

GoogleCodeExporter commented 8 years ago
Timing sounds plausible, there's a lag with every action in the awesome bar 
(while it listens for bookmarks etc?) and it crashes if I hold down the hotkey 
associated with the action for too long, has made me happy anyway, can get the 
behaviour i want as long as i'm gentle with it.

Original comment by tpowe...@gmail.com on 14 Aug 2010 at 9:57