ssanthosh243 / semicomplete

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

It's not easy to find out what names to use with 'xdotool keys' #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. xdotool type "echo hello"
2. xdotool key enter

What is the expected output? What do you see instead?
Expected:
# echo hello
hello
#

Actual:
# echo hello
(symbol) No such key name 'enter'. Ignoring it.
(symbol) No such key name 'enter'. Ignoring it.

What version of the product are you using? On what operating system?
xdotool version 2.20110530.1
Ubuntu 12.04.3 LTS

Please provide any additional information below.

I'd really appreciate an option to list all keysequences acceptable to xdotool, 
perhaps 'xdotool key --list', maybe the error message could mention that.

Original issue reported on code.google.com by pkts...@gmail.com on 21 Nov 2013 at 6:19

GoogleCodeExporter commented 9 years ago
Use 'xev -event keyboard', unless you want to enter keys that you cannot 
actually type using your keyboard. In the latter case, use

grep "XK_" /usr/include/X11/keysymdef.h|sed 's/ XK_/ /g' (for most normal 
keysyms)

or 

grep "XK_" /usr/include/X11/XF86keysym.h|sed 's/XK_//g' (for 'multimedia 
keyboard' keysyms)

Original comment by fintic...@gmail.com on 23 Dec 2013 at 3:55

GoogleCodeExporter commented 9 years ago
It would be nice to have this information included in the manpage.

Original comment by bobp...@gmail.com on 17 Sep 2014 at 5:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The value for enter key is 'Return'. And you need to put back-ticks (the key 
below Esc) on either side of echo hello
So try

xdotool type `"echo hello"`
xdotool key Return

and this gives the required result

Original comment by V.Nith...@gmail.com on 21 Nov 2014 at 3:04