harpend
unread,May 12, 2012, 4:11:03 PM5/12/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to autokey-users
Using Mint 12 and the current PPA version of autokey, I have two
nearly identical scripts that read a global variable "markon" and
either send an arrow key or a shift arrow key. Here is one:
if not store.has_key("markon"):
store.set_global_value("markon",0)
x=store.get_global_value("markon")
if x==0:
keyboard.send_keys("<right>")
else:
keyboard.send_keys("<shift>+<right>")
and the other is identical with <right> replaced by <left>
The version that sends left arrow or shift-left works just fine. The
other script that send right or shift right will not send shift
right. I have the same experience with others, for example a script
sends <home> just fine but will not send <shift>+<home>.
Here is the debug output for the <left> version that works fine:
2012-05-12 13:42:35,385 INFO - service - Matched hotkey phrase/script
with prompt=False
2012-05-12 13:42:35,385 DEBUG - service - Script runner executing:
Script('ctlh')
2012-05-12 13:42:35,386 DEBUG - iomediator - Send via event interface
2012-05-12 13:42:35,386 DEBUG - service - Ignored locking error in
handle_keypress
2012-05-12 13:42:35,388 DEBUG - interface - Send modified key:
modifiers: [u'<shift>'] key: <left>
<---------------------------------------------------------------
2012-05-12 13:42:38,681 DEBUG - service - Raw key: u'l', modifiers:
['<ctrl>'], Key: l
2012-05-12 13:42:38,682 DEBUG - service - Window visible title:
u'*Untitled Document 1 - gedit', Window class: 'gedit.Gedit'
and here is the output from the (failed) right version:
2012-05-12 13:40:01,525 INFO - service - Matched hotkey phrase/script
with prompt=False
2012-05-12 13:40:01,525 DEBUG - service - Script runner executing:
Script('ctll')
2012-05-12 13:40:01,526 DEBUG - iomediator - Send via event interface
2012-05-12 13:40:01,526 DEBUG - service - Ignored locking error in
handle_keypress
2012-05-12 13:40:01,531 DEBUG - interface - Send special key:
[u'<right>']
2012-05-12 13:40:02,010 DEBUG - service - Raw key: u'l', modifiers:
['<ctrl>'], Key: l
2012-05-12 13:40:02,010 DEBUG - service - Window visible title:
u'*Untitled Document 1 - gedit', Window class: 'gedit.Gedit'
The line in the first block with the arrow pointing to it is not in
the second block. The two scripts are identical: I copied the good
one, pasted it into the editor and changed "left" to "right" in it.
Would be grateful for any help.
Thanks, Henry Harpending