Sending a pipe symbol with xdotool

463 views
Skip to first unread message

Joe Consultant

unread,
Sep 11, 2016, 7:49:29 PM9/11/16
to xdotool-users
I'm working on another application issue (AutoKey) where there is a problem sending a pipe symbol.

I tried using xdotool to figure out what the issue is.

    shelelia@halo:~/pq$ xdotool key '|'
    Error: Invalid key sequence '|'
    Failure converting key sequence '|' to keycodes
    Error: Invalid key sequence '|'
    Failure converting key sequence '|' to keycodes
    xdo_keysequence reported an error for string '|'

What am I doing wrong?

Thanks.

Jordan Sissel

unread,
Sep 11, 2016, 7:51:52 PM9/11/16
to joseph...@gmail.com, xdotool-users
`key` takes names that are symbol names for keyboard keys. These are sometimes hard to find, but `keysymdef.h` defines them, if that helps.

It looks like in your case, you want to do `xdotool key bar`, because `bar` is defined in keysymdef.h as `XK_bar` with a comment saying 'vertical bar'.

If you want to type '|' instead, can you try `xdotool type` ? `type` is more for "send the keys that will produce this text" like `xdotool type "hello world | goodbye"`

-Jordan


--
You received this message because you are subscribed to the Google Groups "xdotool-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xdotool-users+unsubscribe@googlegroups.com.
To post to this group, send email to xdotoo...@googlegroups.com.
Visit this group at https://groups.google.com/group/xdotool-users.
For more options, visit https://groups.google.com/d/optout.

Joe Consultant

unread,
Sep 21, 2016, 1:38:09 AM9/21/16
to Jordan Sissel, xdotool-users
Thanks for taking the time to answer. And thanks for the great tool.

We need it occasionally when we run into one of the many things that AutoKey won't do, but your cool tool will.
Reply all
Reply to author
Forward
0 new messages