to use Scroll lock, is it 'Scroll_Lock'?

666 views
Skip to first unread message

andy purugganan

unread,
Jul 9, 2013, 12:29:14 PM7/9/13
to xdotoo...@googlegroups.com
I'm trying to send a key combo, actually e.g.

xdotool search "windowname" key Alt+Scroll_lock
(symbol) No such key name 'Scroll_lock'. Ignoring it.

I am trying with the above 'Scroll_Lock' but I get no such error, so seems to be correct, although my search might not have been successful.

Jordan Sissel

unread,
Jul 20, 2013, 8:16:19 PM7/20/13
to andypur...@gmail.com, xdotool-users
"Scroll_Lock" (with a capital L) is correct.

You might find that if 'key' is not working after you target a window, it's because of what is documented in the xdotool manpage under "SENDEVENT NOTES" - you can work around this by doing:

xdotool search "windowname" windowactivate --sync key --window 0 Alt+Scroll_Lock

Using '--window 0' will type using a method in X11 that looks like it comes from the keybaord, so using windowactivate before that will bring the window into focus so typing works. Without this, the keyboard events are seen by the receiving application as "synthetic" events which many programs ignore by default.

Hope this helps!

-Jordan

Reply all
Reply to author
Forward
0 new messages