Repository: autokey/autokey

Issue #92: keyboard.send_keys(output) adds an unwanted enter (with Python 3)
Created: 2017-07-22T20:08:41Z
Classification: BUG
Reproducibility: ALWAYS
Summary
See this topic https://groups.google.com/forum/#!topic/autokey-users/ukpgoLK7lGY
Steps to Reproduce
(text from topic)
Following little script gives me the date of the next sunday. Working fine:
commandstr="date "+%Y-%m-%d" --date="next sun""
output = system.exec_command(commandstr)
keyboard.send_keys(output)
But since i've upgraded from Autokey to Autokey with Python 3*, keyboard.send_keys(output) also gives an enter. I've also scripts where the (output) is in the middle of a script, but the're now useless because of the inserted enter. Is there any way to eliminate this extra enter?
Expected Results: no enter
Actual Results: enter after keyboard.send_keys(output)
Version 0.93.10 installed through pip (i think ..)
Python 3.5.2
Notes
Work-around by Joe (on Google Groups): chop last character off
keyboard.send_keys(output[0:-1])

Duplicate issue #75: "Insert date" in Terminator introduces unexpected linefeed (LF / 0x0A).
Created: 2017-03-26T07:33:19Z
Classification:
UI/Usability
Reproducibility:
Always
Summary
Example "Insert date" introduces unexpected linefeed (LF / 0x0A) character, but only in the Terminator version  0.98-1 terminal.
Steps to Reproduce

Open a instance of Terminator terminal
Run the "Insert date" script

Expected Results
Following is the expected output of running the script four times in a row, in vim running in terminal mode, under Terminator:
Sun Mar 26 03:11:32 EDT 2017Sun Mar 26 03:11:36 EDT 2017Sun Mar 26 03:11:39 EDT 2017Sun Mar 26 03:11:48 EDT 2017

Actual Results
Following is the actual output of running the script four times in a row, in vim running in terminal mode, under Terminator.
Sun Mar 26 03:1
1:32 EDT 2017Sun Mar 26 03:11
:36 EDT 2017Sun Mar 26 03
:11:39 EDT 2017Sun Mar 26 03:11
:48 EDT 2017

The output in hex:
0000000   S   u   n       M   a   r       2   6       0   3   :   1  \n
0000010   1   :   3   2       E   D   T       2   0   1   7   S   u   n
0000020       M   a   r       2   6       0   3   :   1   1  \n   :   3
0000030   6       E   D   T       2   0   1   7   S   u   n       M   a
0000040   r       2   6       0   3  \n   :   1   1   :   3   9       E
0000050   D   T       2   0   1   7   S   u   n       M   a   r       2
0000060   6       0   3   :   1   1  \n   :   4   8       E   D   T    
0000070   2   0   1   7  \n                                            
0000075

The same result is obtained if pasting directly into Terminator's bash prompt, without vim running.
Version
AutoKey-Py3, most recent github code as of 2017-03-26 03:23:09 EDT
Distro:  Ubuntu 16.04 LTS Xenial Xerus
Notes
Terminator version 0.98-1 does not exhibit any bug when normally pasting code into it or typing within.  It is a stable product AFAIK.  It is the only application I know that suffers of this bug.  Note sure if the bug is within Terminator or an odd interaction between Terminator and AutoKey-Py3.
gnome-terminal does not exhibit this problem.

Closing comment (2017-07-26T23:02:58Z): Does this issue happen in other Java-based apps? Could be related to #92