ssanthosh243 / semicomplete

Automatically exported from code.google.com/p/semicomplete
0 stars 0 forks source link

xdotool does not type correctly #68

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run `xdotool type 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`.

What is the expected output?

ABCDEFGHIJKLMNOPQRSTUVWXYZ is effectively entered in the terminal.

What do you see instead?

ABcDEfgHIJKlMOQRSTUVWXyZ, ABcDEfgHIJKMpOQRSTUVWXZ or similar is output 
extremely jerkily.

What version of the product are you using? On what operating system?

xdotool version 2.20110530.1

Linux <snip>-gentoo 3.6.0-rc1+ #8 SMP Wed Aug 8 12:35:31 EDT 2012 x86_64 
Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz GenuineIntel GNU/Linux

Please provide any additional information below.

`echo 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | while read -n 1 KEY; do xdotool key $KEY; 
done` works fine then outputs help message (not good at bash scripting). Even 
`xdotool key --delay 0 $KEY` works fine.

Original issue reported on code.google.com by alex.hel...@gmail.com on 9 Aug 2012 at 5:52

GoogleCodeExporter commented 9 years ago
Can you try with 'xdotool type --clearmodifiers ABCDEFGHIJKLMNOPQRSTUVWXYZ'

I suspect some keystrokes are getting mixed or missing. If you touch the 
keyboard while xdotool is typing, you can mess it up since both xdotool and 
your own keyboard affect X11 the same way.

Original comment by j...@semicomplete.com on 9 Aug 2012 at 5:54

GoogleCodeExporter commented 9 years ago
Also doesn't work. `--delay 1000` types the correct letters, but wrong 
capitalization. "ABcDEfgHIJKlMnOpQRSTUVWXyZ"

Original comment by alex.hel...@gmail.com on 9 Aug 2012 at 5:56

GoogleCodeExporter commented 9 years ago
Wrapping xdotool with this appears to work properly for all reasonable use 
cases.

Original comment by alex.hel...@gmail.com on 11 Aug 2012 at 6:48

Attachments: