You are not logged in.
I am having Autokey (probably the only text expander in linux) since the days of xfce. After moving to fluxbox, Autokey does not work properly. As soon as you use "abbreviation from selection" script, either by hotkey or by selecting from menu, Autokey window would not come to front on clicking the icon in taskbar or pressing the hotkey. The previously entered abbreviations would not expand either. Now, one has to kill the Autokey and start again for it to work. However, without the ability to quickly add abbreviation, it is kind of lame.
Did anybody notice this issue? Any resolution?
Also, I would appreciate suggestion for other easy to use text expander / keystroke recorders. I really miss the Shorthand and Phrase Express that I use in my office machine.
Last edited by ravisghosh (2013-03-14 21:45:54)
Offline
The only suggestion I have is that there is some sort of keystroke grabbing problem. Did you check that hotkeys in ~/.fluxbox/keys might be interfering with those of autokey??
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
I don't see a conflict between the hotkey to invoke the "abbreviation from selection" script and fluxbox keys. Besides, Autokey stop working when this script is invoked from menu using mouse, no question of key conflict there. Here is the script.
import time
time.sleep(0.25)
contents = clipboard.get_selection()
retCode, abbr = dialog.input_dialog("New Abbreviation", "Choose an abbreviation for the new phrase")
if retCode == 0:
if len(contents) > 20:
title = contents[0:17] + "..."
else:
title = contents
folder = engine.get_folder("My Phrases")
engine.create_abbreviation(folder, title, abbr, contents)Offline
OK, sorry can't help any more. My only suggestion would be to go on the fluxbox IRC channel where the developers hang out - might get some good hints there.
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
Thanks lagagnon.
I ran autokey-gtk with logging on and I see an error with Abbreviation from selection script in the log, but don't understand what is wrong there. I have highlighted the error in red color. Also, put the script at the end.
2013-03-14 23:51:11,976 INFO - root - Initialising application
2013-03-14 23:51:11,989 INFO - root - Initialise global hotkeys
2013-03-14 23:51:11,989 INFO - config-manager - Loading config from existing file: /home/shantanu/.config/autokey/autokey.json
2013-03-14 23:51:11,990 DEBUG - config-manager - Loading folder at '/home/shantanu/.config/autokey/data/My Phrases'
2013-03-14 23:51:12,007 DEBUG - config-manager - Loading folder at '/home/shantanu/.config/autokey/data/Sample Scripts'
2013-03-14 23:51:12,008 INFO - config-manager - Configuration changed - rebuilding in-memory structures
2013-03-14 23:51:12,008 DEBUG - inotify - Adding watch for /home/shantanu/.config/autokey/data/My Phrases
2013-03-14 23:51:12,009 DEBUG - inotify - Adding watch for /home/shantanu/.config/autokey/data/Sample Scripts
2013-03-14 23:51:12,009 INFO - config-manager - Successfully loaded configuration
2013-03-14 23:51:12,009 DEBUG - inotify - Adding watch for /home/shantanu/.config/autokey/data
2013-03-14 23:51:12,009 DEBUG - inotify - Adding watch for /home/shantanu/.config/autokey
2013-03-14 23:51:12,009 DEBUG - config-manager - Global settings: {'showTrayIcon': True, 'sortByUsageCount': False, 'scriptGlobals': {}, 'undoUsingBackspace': False, 'notificationIcon': u'autokey-status', 'enableQT4Workaround': False, 'promptToSave': True, 'menuTakesFocus': False, 'interfaceType': u'XRecord', 'windowDefaultSize': [1366, 744], 'showToolbar': True, 'serviceRunning': True, 'columnWidths': [150, 50, 100], 'workAroundApps': u'.*VirtualBox.*|krdc.Krdc', 'hPanePosition': 401, 'isFirstRun': False}
2013-03-14 23:51:12,010 INFO - service - Starting service
Xlib.protocol.request.QueryExtension
2013-03-14 23:51:12,050 DEBUG - interface - Modifier masks: {'<capslock>': 2, '<meta>': 8, '<alt_gr>': 128, '<numlock>': 16, '<hyper>': 64, '<ctrl>': 4, '<shift>': 1, '<alt>': 8, '<super>': 64}
2013-03-14 23:51:12,077 DEBUG - interface - Alt-Grid: XK_Alt_R, 65514
2013-03-14 23:51:12,078 DEBUG - interface - [(92, 0), (92, 2)]
2013-03-14 23:51:12,078 DEBUG - interface - X Server Keymap
2013-03-14 23:51:12,079 DEBUG - interface - [\] : [(51, 0), (51, 2)]
2013-03-14 23:51:12,079 DEBUG - interface - [|] : [(51, 1), (51, 3), (94, 4), (94, 6)]
2013-03-14 23:51:12,079 DEBUG - interface - [`] : [(49, 0), (49, 2)]
2013-03-14 23:51:12,079 DEBUG - interface - [1] : [(10, 0), (10, 2)]
2013-03-14 23:51:12,079 DEBUG - interface - [2] : [(11, 0), (11, 2)]
2013-03-14 23:51:12,080 DEBUG - interface - [3] : [(12, 0), (12, 2)]
2013-03-14 23:51:12,080 DEBUG - interface - [4] : [(13, 0), (13, 2)]
2013-03-14 23:51:12,080 DEBUG - interface - [5] : [(14, 0), (14, 2)]
2013-03-14 23:51:12,080 DEBUG - interface - [6] : [(15, 0), (15, 2)]
2013-03-14 23:51:12,080 DEBUG - interface - [7] : [(16, 0), (16, 2)]
2013-03-14 23:51:12,081 DEBUG - interface - [8] : [(17, 0), (17, 2)]
2013-03-14 23:51:12,081 DEBUG - interface - [9] : [(18, 0), (18, 2)]
2013-03-14 23:51:12,081 DEBUG - interface - [0] : [(19, 0), (19, 2)]
2013-03-14 23:51:12,081 DEBUG - interface - [-] : [(20, 0), (20, 2)]
2013-03-14 23:51:12,081 DEBUG - interface - [=] : [(21, 0), (21, 2)]
2013-03-14 23:51:12,081 DEBUG - interface - [~] : [(49, 1), (49, 3)]
2013-03-14 23:51:12,081 DEBUG - interface - [!] : [(10, 1), (10, 3)]
2013-03-14 23:51:12,081 DEBUG - interface - [@] : [(11, 1), (11, 3)]
2013-03-14 23:51:12,082 DEBUG - interface - [#] : [(12, 1), (12, 3)]
2013-03-14 23:51:12,082 DEBUG - interface - [$] : [(13, 1), (13, 3)]
2013-03-14 23:51:12,082 DEBUG - interface - [%] : [(14, 1), (14, 3)]
2013-03-14 23:51:12,082 DEBUG - interface - [^] : [(15, 1), (15, 3)]
2013-03-14 23:51:12,082 DEBUG - interface - [&] : [(16, 1), (16, 3)]
2013-03-14 23:51:12,082 DEBUG - interface - [*] : [(17, 1), (17, 3)]
2013-03-14 23:51:12,082 DEBUG - interface - [(] : [(187, 0), (18, 1), (187, 2), (18, 3)]
2013-03-14 23:51:12,083 DEBUG - interface - [)] : [(188, 0), (19, 1), (188, 2), (19, 3)]
2013-03-14 23:51:12,083 DEBUG - interface - [q] : [(24, 0), (24, 2)]
2013-03-14 23:51:12,083 DEBUG - interface - [w] : [(25, 0), (25, 2)]
2013-03-14 23:51:12,083 DEBUG - interface - [e] : [(26, 0), (26, 2)]
2013-03-14 23:51:12,083 DEBUG - interface - [r] : [(27, 0), (27, 2)]
2013-03-14 23:51:12,083 DEBUG - interface - [t] : [(28, 0), (28, 2)]
2013-03-14 23:51:12,083 DEBUG - interface - [y] : [(29, 0), (29, 2)]
2013-03-14 23:51:12,083 DEBUG - interface - [u] : [(30, 0), (30, 2)]
2013-03-14 23:51:12,084 DEBUG - interface - [i] : [(31, 0), (31, 2)]
2013-03-14 23:51:12,084 DEBUG - interface - [o] : [(32, 0), (32, 2)]
2013-03-14 23:51:12,084 DEBUG - interface - [p] : [(33, 0), (33, 2)]
2013-03-14 23:51:12,084 DEBUG - interface - [[] : [(34, 0), (34, 2)]
2013-03-14 23:51:12,084 DEBUG - interface - []] : [(35, 0), (35, 2)]
2013-03-14 23:51:12,084 DEBUG - interface - [a] : [(38, 0), (38, 2)]
2013-03-14 23:51:12,084 DEBUG - interface - [s] : [(39, 0), (39, 2)]
2013-03-14 23:51:12,084 DEBUG - interface - [d] : [(40, 0), (40, 2)]
2013-03-14 23:51:12,085 DEBUG - interface - [f] : [(41, 0), (41, 2)]
2013-03-14 23:51:12,085 DEBUG - interface - [g] : [(42, 0), (42, 2)]
2013-03-14 23:51:12,085 DEBUG - interface - [h] : [(43, 0), (43, 2)]
2013-03-14 23:51:12,085 DEBUG - interface - [j] : [(44, 0), (44, 2)]
2013-03-14 23:51:12,085 DEBUG - interface - [k] : [(45, 0), (45, 2)]
2013-03-14 23:51:12,085 DEBUG - interface - [l] : [(46, 0), (46, 2)]
2013-03-14 23:51:12,085 DEBUG - interface - [;] : [(47, 0), (47, 2)]
2013-03-14 23:51:12,085 DEBUG - interface - ['] : [(48, 0), (48, 2)]
2013-03-14 23:51:12,086 DEBUG - interface - [z] : [(52, 0), (52, 2)]
2013-03-14 23:51:12,086 DEBUG - interface - [x] : [(53, 0), (53, 2)]
2013-03-14 23:51:12,086 DEBUG - interface - [c] : [(54, 0), (54, 2)]
2013-03-14 23:51:12,086 DEBUG - interface - [v] : [(55, 0), (55, 2)]
2013-03-14 23:51:12,086 DEBUG - interface - [b] : [(56, 0), (56, 2)]
2013-03-14 23:51:12,086 DEBUG - interface - [n] : [(57, 0), (57, 2)]
2013-03-14 23:51:12,086 DEBUG - interface - [m] : [(58, 0), (58, 2)]
2013-03-14 23:51:12,086 DEBUG - interface - [,] : [(59, 0), (59, 2)]
2013-03-14 23:51:12,087 DEBUG - interface - [.] : [(60, 0), (60, 2)]
2013-03-14 23:51:12,087 DEBUG - interface - [/] : [(61, 0), (61, 2)]
2013-03-14 23:51:12,087 DEBUG - interface - [Q] : [(24, 1), (24, 3)]
2013-03-14 23:51:12,087 DEBUG - interface - [W] : [(25, 1), (25, 3)]
2013-03-14 23:51:12,087 DEBUG - interface - [E] : [(26, 1), (26, 3)]
2013-03-14 23:51:12,087 DEBUG - interface - [R] : [(27, 1), (27, 3)]
2013-03-14 23:51:12,087 DEBUG - interface - [T] : [(28, 1), (28, 3)]
2013-03-14 23:51:12,087 DEBUG - interface - [Y] : [(29, 1), (29, 3)]
2013-03-14 23:51:12,088 DEBUG - interface - [U] : [(30, 1), (30, 3)]
2013-03-14 23:51:12,088 DEBUG - interface - [I] : [(31, 1), (31, 3)]
2013-03-14 23:51:12,088 DEBUG - interface - [O] : [(32, 1), (32, 3)]
2013-03-14 23:51:12,088 DEBUG - interface - [P] : [(33, 1), (33, 3)]
2013-03-14 23:51:12,088 DEBUG - interface - [{] : [(34, 1), (34, 3)]
2013-03-14 23:51:12,088 DEBUG - interface - [}] : [(35, 1), (35, 3)]
2013-03-14 23:51:12,088 DEBUG - interface - [A] : [(38, 1), (38, 3)]
2013-03-14 23:51:12,088 DEBUG - interface - [S] : [(39, 1), (39, 3)]
2013-03-14 23:51:12,089 DEBUG - interface - [D] : [(40, 1), (40, 3)]
2013-03-14 23:51:12,089 DEBUG - interface - [F] : [(41, 1), (41, 3)]
2013-03-14 23:51:12,089 DEBUG - interface - [G] : [(42, 1), (42, 3)]
2013-03-14 23:51:12,089 DEBUG - interface - [H] : [(43, 1), (43, 3)]
2013-03-14 23:51:12,089 DEBUG - interface - [J] : [(44, 1), (44, 3)]
2013-03-14 23:51:12,089 DEBUG - interface - [K] : [(45, 1), (45, 3)]
2013-03-14 23:51:12,089 DEBUG - interface - [L] : [(46, 1), (46, 3)]
2013-03-14 23:51:12,089 DEBUG - interface - [:] : [(47, 1), (47, 3)]
2013-03-14 23:51:12,090 DEBUG - interface - ["] : [(48, 1), (48, 3)]
2013-03-14 23:51:12,090 DEBUG - interface - [Z] : [(52, 1), (52, 3)]
2013-03-14 23:51:12,090 DEBUG - interface - [X] : [(53, 1), (53, 3)]
2013-03-14 23:51:12,090 DEBUG - interface - [C] : [(54, 1), (54, 3)]
2013-03-14 23:51:12,090 DEBUG - interface - [V] : [(55, 1), (55, 3)]
2013-03-14 23:51:12,090 DEBUG - interface - [B] : [(56, 1), (56, 3)]
2013-03-14 23:51:12,090 DEBUG - interface - [N] : [(57, 1), (57, 3)]
2013-03-14 23:51:12,090 DEBUG - interface - [M] : [(58, 1), (58, 3)]
2013-03-14 23:51:12,091 DEBUG - interface - [<] : [(94, 0), (59, 1), (94, 2), (59, 3)]
2013-03-14 23:51:12,091 DEBUG - interface - [>] : [(60, 1), (94, 1), (60, 3), (94, 3)]
2013-03-14 23:51:12,091 DEBUG - interface - [?] : [(61, 1), (61, 3)]
2013-03-14 23:51:12,092 DEBUG - iomediator - Set modifier <capslock> to False
2013-03-14 23:51:12,092 DEBUG - iomediator - Set modifier <numlock> to True
2013-03-14 23:51:12,094 DEBUG - interface - Grabbing hotkey: [u'<ctrl>'] u'`'
2013-03-14 23:51:12,095 DEBUG - interface - Grabbing hotkey: [u'<shift>', u'<super>'] u'k'
2013-03-14 23:51:12,095 DEBUG - interface - Grabbing hotkey: [u'<ctrl>'] u'1'
2013-03-14 23:51:12,095 DEBUG - interface - Grabbing hotkey: [u'<alt>', u'<ctrl>', u'<shift>'] u'6'
Xlib.protocol.request.QueryExtension
2013-03-14 23:51:12,112 INFO - interface - XRecord interface thread starting
2013-03-14 23:51:12,114 INFO - service - Service now marked as running
2013-03-14 23:51:12,155 INFO - root - Entering main()
2013-03-14 23:51:14,588 DEBUG - service - Received mouse click - resetting buffer
2013-03-14 23:51:15,102 DEBUG - service - Raw key: '<up>', modifiers: [], Key: <up>
2013-03-14 23:51:15,103 DEBUG - service - Window visible title: '', Window class: 'chromium.Chromium'
2013-03-14 23:51:15,103 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:15,261 DEBUG - service - Raw key: '<up>', modifiers: [], Key: <up>
2013-03-14 23:51:15,262 DEBUG - service - Window visible title: '', Window class: 'chromium.Chromium'
2013-03-14 23:51:15,263 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:15,422 DEBUG - service - Raw key: '<up>', modifiers: [], Key: <up>
2013-03-14 23:51:15,422 DEBUG - service - Window visible title: '', Window class: 'chromium.Chromium'
2013-03-14 23:51:15,422 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:15,814 DEBUG - service - Raw key: '<end>', modifiers: [], Key: <end>
2013-03-14 23:51:15,814 DEBUG - service - Window visible title: '', Window class: 'chromium.Chromium'
2013-03-14 23:51:15,815 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:15,998 DEBUG - iomediator - <shift> pressed
2013-03-14 23:51:16,142 DEBUG - service - Raw key: '<home>', modifiers: ['<shift>'], Key: <home>
2013-03-14 23:51:16,143 DEBUG - service - Window visible title: '', Window class: 'chromium.Chromium'
2013-03-14 23:51:16,143 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:16,364 DEBUG - iomediator - <shift> released
2013-03-14 23:51:18,826 DEBUG - phrase-menu - Sorting phrase menu by item name/title
2013-03-14 23:51:18,828 DEBUG - phrase-menu - Sorting phrase menu by item name/title
2013-03-14 23:51:18,829 DEBUG - service - Received mouse click - resetting buffer
2013-03-14 23:51:21,214 DEBUG - service - Received mouse click - resetting buffer
[color=#FF0000]2013-03-14 23:51:21,597 DEBUG - service - Script runner executing: Script('Abbreviation from selection')
2013-03-14 23:51:21,922 ERROR - service - Script error
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/autokey/service.py", line 454, in execute
exec script.code in scope
File "<string>", line 4, in <module>
File "/usr/lib/python2.7/site-packages/autokey/scripting.py", line 539, in input_dialog
return self.__runZenity(title, ["--entry", "--text", message, "--entry-text", default], kwargs)
File "/usr/lib/python2.7/site-packages/autokey/scripting.py", line 508, in __runZenity
p = subprocess.Popen(["zenity", "--title", title] + args, stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory[/color]
2013-03-14 23:51:25,924 DEBUG - iomediator - <ctrl> pressed
2013-03-14 23:51:25,932 DEBUG - iomediator - <shift> pressed
2013-03-14 23:51:26,142 DEBUG - service - Raw key: '<escape>', modifiers: ['<ctrl>', '<shift>'], Key: <escape>
2013-03-14 23:51:26,142 DEBUG - service - Window visible title: '', Window class: 'chromium.Chromium'
2013-03-14 23:51:26,143 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:26,395 DEBUG - iomediator - <ctrl> released
2013-03-14 23:51:26,460 DEBUG - iomediator - <shift> released
2013-03-14 23:51:27,951 DEBUG - service - Raw key: u'a', modifiers: [], Key: a
2013-03-14 23:51:27,952 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:27,953 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:27,956 DEBUG - service - Input stack at end of handle_keypress: [u'a']
2013-03-14 23:51:28,079 DEBUG - service - Raw key: u'u', modifiers: [], Key: u
2013-03-14 23:51:28,079 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:28,080 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:28,084 DEBUG - service - Input stack at end of handle_keypress: [u'a', u'u']
2013-03-14 23:51:28,196 DEBUG - service - Raw key: u't', modifiers: [], Key: t
2013-03-14 23:51:28,196 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:28,196 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:28,197 DEBUG - service - Input stack at end of handle_keypress: [u'a', u'u', u't']
2013-03-14 23:51:28,285 DEBUG - service - Raw key: u'o', modifiers: [], Key: o
2013-03-14 23:51:28,286 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:28,286 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:28,290 DEBUG - service - Input stack at end of handle_keypress: [u'a', u'u', u't', u'o']
2013-03-14 23:51:28,550 DEBUG - service - Raw key: u'k', modifiers: [], Key: k
2013-03-14 23:51:28,551 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:28,551 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:28,554 DEBUG - service - Input stack at end of handle_keypress: [u'a', u'u', u't', u'o', u'k']
2013-03-14 23:51:28,958 DEBUG - service - Raw key: '<escape>', modifiers: [], Key: <escape>
2013-03-14 23:51:28,958 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:28,959 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:29,552 DEBUG - service - Raw key: u'/', modifiers: [], Key: /
2013-03-14 23:51:29,552 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:29,553 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:29,556 DEBUG - service - Input stack at end of handle_keypress: [u'/']
2013-03-14 23:51:30,238 DEBUG - service - Raw key: u'/', modifiers: [], Key: /
2013-03-14 23:51:30,238 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:30,238 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:30,239 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'/']
2013-03-14 23:51:30,838 DEBUG - service - Raw key: '<backspace>', modifiers: [], Key: <backspace>
2013-03-14 23:51:30,839 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:30,839 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:31,142 DEBUG - service - Raw key: '<backspace>', modifiers: [], Key: <backspace>
2013-03-14 23:51:31,143 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:31,143 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:31,807 DEBUG - service - Raw key: u'/', modifiers: [], Key: /
2013-03-14 23:51:31,807 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:31,808 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:31,811 DEBUG - service - Input stack at end of handle_keypress: [u'/']
2013-03-14 23:51:32,118 DEBUG - service - Raw key: u'a', modifiers: [], Key: a
2013-03-14 23:51:32,119 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:32,119 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:32,123 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'a']
2013-03-14 23:51:32,191 DEBUG - service - Raw key: u'u', modifiers: [], Key: u
2013-03-14 23:51:32,191 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:32,192 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:32,195 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'a', u'u']
2013-03-14 23:51:32,293 DEBUG - service - Raw key: u't', modifiers: [], Key: t
2013-03-14 23:51:32,296 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:32,297 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:32,300 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'a', u'u', u't']
2013-03-14 23:51:32,372 DEBUG - service - Raw key: u'o', modifiers: [], Key: o
2013-03-14 23:51:32,372 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:32,372 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:32,373 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'a', u'u', u't', u'o']
2013-03-14 23:51:32,581 DEBUG - service - Raw key: u'k', modifiers: [], Key: k
2013-03-14 23:51:32,582 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:32,582 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:32,586 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'a', u'u', u't', u'o', u'k']
2013-03-14 23:51:32,646 DEBUG - service - Raw key: u'e', modifiers: [], Key: e
2013-03-14 23:51:32,646 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:32,647 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:32,650 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'a', u'u', u't', u'o', u'k', u'e']
2013-03-14 23:51:32,726 DEBUG - service - Raw key: u'y', modifiers: [], Key: y
2013-03-14 23:51:32,726 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:32,727 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:32,730 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'a', u'u', u't', u'o', u'k', u'e', u'y']
2013-03-14 23:51:32,886 DEBUG - service - Raw key: '<enter>', modifiers: [], Key: <enter>
2013-03-14 23:51:32,887 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:32,887 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:32,890 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'a', u'u', u't', u'o', u'k', u'e', u'y', '\n']
2013-03-14 23:51:33,209 DEBUG - service - Raw key: u'k', modifiers: [], Key: k
2013-03-14 23:51:33,209 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:33,210 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:33,211 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'a', u'u', u't', u'o', u'k', u'e', u'y', '\n', u'k']
2013-03-14 23:51:34,446 DEBUG - service - Raw key: u'k', modifiers: [], Key: k
2013-03-14 23:51:34,447 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:34,448 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:34,451 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'a', u'u', u't', u'o', u'k', u'e', u'y', '\n', u'k', u'k']
2013-03-14 23:51:34,676 DEBUG - service - Raw key: u'9', modifiers: [], Key: 9
2013-03-14 23:51:34,676 DEBUG - service - Window visible title: '', Window class: 'urxvt.URxvt'
2013-03-14 23:51:34,676 DEBUG - service - No phrase/script matched hotkey
2013-03-14 23:51:34,678 DEBUG - service - Input stack at end of handle_keypress: [u'/', u'a', u'u', u't', u'o', u'k', u'e', u'y', '\n', u'k', u'k', u'9']Abbreviation from Selection Script
import time
time.sleep(0.25)
contents = clipboard.get_selection()
retCode, abbr = dialog.input_dialog("New Abbreviation", "Choose an abbreviation for the new phrase")
if retCode == 0:
if len(contents) > 20:
title = contents[0:17] + "..."
else:
title = contents
folder = engine.get_folder("My Phrases")
engine.create_abbreviation(folder, title, abbr, contents)Offline
Someone in autokey google groups pointed out that I was lacking zenity and the script was trying to call it.
Installed zenity and it fixed the problem.
Last edited by ravisghosh (2013-03-14 21:45:15)
Offline