{"action":"opened","issue":{"url":"https://api.github.com/repos/autokey-py3/autokey-py3/issues/16","repository_url":"https://api.github.com/repos/autokey-py3/autokey-py3","labels_url":"https://api.github.com/repos/autokey-py3/autokey-py3/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/autokey-py3/autokey-py3/issues/16/comments","events_url":"https://api.github.com/repos/autokey-py3/autokey-py3/issues/16/events","html_url":"https://github.com/autokey-py3/autokey-py3/issues/16","id":187832913,"number":16,"title":"clipboard.fill_selection() fails and causes autokey gui to hang","user":{"login":"troxor","id":327529,"avatar_url":"https://avatars.githubusercontent.com/u/327529?v=3","gravatar_id":"","url":"https://api.github.com/users/troxor","html_url":"https://github.com/troxor","followers_url":"https://api.github.com/users/troxor/followers","following_url":"https://api.github.com/users/troxor/following{/other_user}","gists_url":"https://api.github.com/users/troxor/gists{/gist_id}","starred_url":"https://api.github.com/users/troxor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troxor/subscriptions","organizations_url":"https://api.github.com/users/troxor/orgs","repos_url":"https://api.github.com/users/troxor/repos","events_url":"https://api.github.com/users/troxor/events{/privacy}","received_events_url":"https://api.github.com/users/troxor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-07T21:24:22Z","updated_at":"2016-11-07T21:24:22Z","closed_at":null,"body":"<a href=\"https://github.com/xaaron\"><img src=\"https://avatars.githubusercontent.com/u/504343?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [xaaron](https://github.com/xaaron)**\n_Wednesday Jan 27, 2016 at 14:11 GMT_\n_Originally opened as https://github.com/guoci/autokey-py3/issues/18_\n\n----\n\nI am on Arch x64.  I execute the following script with ;;uc and it clears my trigger and functions as expected outputting the selection in uppercase:\n\ncb = clipboard.get_selection()\n# clipboard.fill_selection(cb.upper())\n\nkeyboard.send_keys(cb.upper())\n\nThe following code causes autokey GUI to freeze and does not provide any output to the keyboard:\ncb = clipboard.get_selection()\nclipboard.fill_selection(cb.upper())\nkeyboard.send_keys(cb.upper())\n\nAlso note that autokey is still running in the background and will work normally on non clipboard related scripts absent the ability to access the gui.\n\nI've been able to resolve the issue by following the solution provided here:  \nhttps://code.google.com/archive/p/autokey/issues/212\n\nMy specific change was:\n1.  edit /usr/lib/python3.5/site-packages/autokey/scripting.py\n2.  change GtkClipboard:__fillSelection(): self.selection.set_text(string) to: self.selection.set_text(string, -1)\n3  restart autokey\n\n"}}
{"actor":{"display_login":"troxor"}}