aboutsummaryrefslogtreecommitdiff
path: root/x11key-help.pd
blob: 5fb957a183dbdada33143c6a4a6e635586bf2dff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#N canvas 90 105 743 591 10;
#X obj 73 -42 cnv 15 150 140 empty empty empty 20 12 0 14 -258699 -66577
0;
#X obj 265 -43 cnv 15 200 140 empty empty empty 20 12 0 14 -258699
-66577 0;
#X obj 157 301 x11key;
#X msg 83 221 help;
#X msg 95 42 letter a;
#X msg 94 -24 bang;
#X msg 279 -19 bang;
#X obj 278 45 delay 1000;
#X obj 96 20 delay 1000;
#X obj 377 47 delay 2000;
#X msg 275 70 keysym A 1;
#X msg 379 67 keysym A 0;
#X obj 280 23 t b b;
#X text 300 219 [x11key] simulates X11 keyboard events.;
#X text 304 292 Comments are welcome. The API (the messages for every
is likely to change.;
#X text 669 458 pureX11;
#N canvas 0 0 410 183 todo 0;
#X msg 35 78 display :0.0;
#X text 31 46 Not yet implemented;
#X restore 28 402 pd todo;
#X obj 518 41 t b b b;
#X obj 519 -32 bng 15 250 50 0 empty empty empty 0 -6 0 8 -258699 -1
-1;
#X text 546 -35 control-A;
#X msg 498 92 keysym Control_L \$1;
#X msg 563 67 1;
#X msg 489 67 0;
#X msg 499 115 keysym A 1 \, keysym A 0;
#X text 272 -35 triggers on and off a key;
#X text 301 242 The examples above generate keys as if you typed it
on your keyboard. Give the focus to an other application than PD \,
in order to see that you really fake letters typing.;
#X text 83 -42 types a key;
#X text 420 485 Released under the GNU Public License v2.0;
#X text 224 428 <-- see a bigger list of the keynames you can generate
;
#N canvas 0 0 500 345 more_keynames_possibles 0;
#X text 19 116 BackSpace \, Tab \, Linefeed \, Clear \, Return \, Pause
\, Scroll_Lock \, Sys_Req \, Escape \, Delete \, Home \, Left \, Up
\, Right \, Down \, Prior \, Page_Up \, Next \, Page_Down \, End \,
Begin \, Shift_L \, Shift_R \, Control_L \, Control_R \, Caps_Lock
\, Shift_Lock \, Meta_L \, Meta_R \, Alt_L \, Alt_R \, space \, exclam
\, quotedbl \, numbersign \, dollar \, percent \, ampersand \, apostrophe
\, quoteright \, parenleft \, parenright \, asterisk \, plus \, comma
\, minus \, period \, slash \, 0 \, 1 \, 2 \, 3 \, 4 \, 5 \, 6 \, 7
\, 8 \, 9 \, colon \, semicolon \, less \, equal \, greater \, question
\, at \, A \, B \, C \, D \, E \, F \, G \, H \, I \, J \, K \, L \,
M \, N \, O \, P \, Q \, R \, S \, T \, U \, V \, W \, X \, Y \, Z
\, bracketleft;
#X text 19 54 Here are some ideas you can send using [keysym Tab 1<
and [keysym Tab 0< \, for instance.;
#X text 86 279 ...and much more. See /usr/include/X11/keysymdef.h;
#X restore 28 425 pd more_keynames_possibles;
#X text 302 325 [letter X< generate a letter (simple version);
#X text 304 346 [keysym X 1|0< triggers a keystroke on or off \, depending
on the second argument value.;
#X obj 498 146 s to_x11key;
#X obj 191 275 r to_x11key;
#X text 443 469 )c( Copyleft 2006-2007 Alexandre Quessy;
#X connect 3 0 2 0;
#X connect 4 0 2 0;
#X connect 5 0 8 0;
#X connect 6 0 12 0;
#X connect 7 0 10 0;
#X connect 8 0 4 0;
#X connect 9 0 11 0;
#X connect 10 0 2 0;
#X connect 11 0 2 0;
#X connect 12 0 7 0;
#X connect 12 1 9 0;
#X connect 17 0 22 0;
#X connect 17 1 23 0;
#X connect 17 2 21 0;
#X connect 18 0 17 0;
#X connect 20 0 32 0;
#X connect 21 0 20 0;
#X connect 22 0 20 0;
#X connect 23 0 32 0;
#X connect 33 0 2 0;