Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1655  / 2 Years ago, fri, november 11, 2022, 5:59:52

Per some suggestions on here and lifehacker, I began using autokey.



It worked great for a week, but as of today it now




  • hangs when I try to enter name new phrases.


  • usually won't close when I push the 'x' in my window manger




and




  • no longer responds to my abbreviation phrases.



I've added a few phrases and rebooted since my last successful attempt at using it.



Another user reported a similar problem for the gtk version of autokey.



The results of running it from the command line seems to show some exception errors:



Exception in thread KeypressHandler-thread:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/dist-packages/autokey/iomediator.py", line 202, in run
target.handle_keypress(rawKey, modifiers, key, windowName, windowClass)
File "/usr/lib/python2.7/dist-packages/autokey/service.py", line 179, in handle_keypress
currentInput, windowInfo, True)
File "/usr/lib/python2.7/dist-packages/autokey/service.py", line 304, in __checkTextMatches
if item.check_input(buffer, windowInfo):
File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 732, in check_input
abbr = self._should_trigger_abbreviation(buffer)
File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 131, in _should_trigger_abbreviation
if self.__checkInput(buffer, abbr):
File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 144, in __checkInput
stringBefore, typedAbbr, stringAfter = self._partition_input(buffer, abbr)
File "/usr/lib/python2.7/dist-packages/autokey/model.py", line 191, in _partition_input
stringBefore, typedAbbr, stringAfter = currentString.rpartition(abbr)
ValueError: empty separator


Full log here



Any help would be appreciated.


More From » kubuntu

 Answers
6

After playing around with auto key some more I noticed that one of my 'Abbreviations' had a comma appended to it and was enclosed by brackets: [<myabbreviation>,]



Upon further inspection, this 'Phrase' rule had an second, extra blank 'abbreviation' enabled that when deleted caused the bracketing to disappear.



Since deleting this extra blank 'abbreviation' Autokey seems to now run be running perfectly.


[#27487] Saturday, November 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uffno

Total Points: 283
Total Questions: 93
Total Answers: 111

Location: Saint Vincent and the Grenadines
Member since Thu, Oct 15, 2020
4 Years ago
uffno questions
Thu, Sep 2, 21, 18:08, 3 Years ago
Sun, Apr 2, 23, 15:15, 1 Year ago
Sat, Jan 8, 22, 16:37, 2 Years ago
;