1XSENDKEYCODE(8)             System Manager's Manual            XSENDKEYCODE(8)
2
3
4

NAME

6       xsendkeycode - send a key event to X using a keycode
7

SYNOPSIS

9       xsendkeycode keycode 1|0
10
11

DESCRIPTION

13       xsendkeycode  is a simple program which allows you to send a keycode to
14       X specifying a KeyPress or KeyRelease type of event.
15
16       A KeyPress event tells X that the key is being held down. A  KeyRelease
17       event tells X that the key has been released. A KeyRelease event is not
18       as critical if you are sending a single alpha-numeric  character.  How‐
19       ever,  if  you  are sending modifier keys such as Shift, Control or Alt
20       then make sure that you send the corresponding key up event or you will
21       proceed as if those keys are being held down.
22
23       For example: xsendkeycode 38 1
24
25       will  send the letter 'a'. If you wanted to send a capital letter a 'A'
26       you would run these commands at the shell:
27
28       xsendkeycode 50 1; xsendkeycode 38 1; xsendkeycode 38  0;  xsendkeycode
29       50 0;
30
31       The  first  command  sends  keycode 50 as a KeyPress. Keycode 50 is the
32       left shift 'Shift_L' key. The  second  command  sends  a  KeyPress  'a'
33       event.  The last two commands send the corresponding KeyRelease events.
34       Notice the order. The 'a' key comes up before the 'Shift_L' key.
35
36       This helper application is not used from lineakd(1) but is included  to
37       allow scripts to send keys. This is especially helpful for people who's
38       keyboards send ACPI events instead of actual KeyCodes.
39
40

SEE ALSO

42       evtest(8), send_to_keyboard(8), xsendkeys(8), lineakd(1).
43

AUTHOR

45       xsendkeycode was written by Aivils <aivils@unibanka.lv>.
46
47
48
49                                 March 2, 2005                 XSENDKEYCODE(8)
Impressum