Re: [PD] x11key, how can i simulate a space or a control s, etc

2007-03-23 Thread moritz
Alexandre Quessy wrote:
 Hi. It's me again. :)
 
 Finally, I got it to compile. Don't know why the headers are now
 present. Maybe they put it in some other packages. Anyways. Want you
 want was already possible. I modified the help file to show how to do
 it. (a simple Control-A that selects all in Pd) I also added a little
 list of which keyname symbols you can send it. See
 externals/aalex/x11key-help.pd in the Pd CVS.
 
 Have fun ! (disclaimer of all warranties ;-) )
 
 aalex
wow!
that is exactly what i want..

now my X will go crazy! :)

thanx

moriTZ

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] x11key, how can i simulate a space or a control s, etc

2007-03-22 Thread moritz
Alexandre Quessy wrote:
 Hi Moritz,
 Eh ! Nice. Someone playing with my little X11 externals. :)
 

ola

Yes, thank you very much for this externals!


 Yes, you can simulate any key press... even control keys and such. You
 can see the list of the keys you can generate in the file
 /usr/include/X11/keysymdef.h You need to send it only the part after
 the XK_.
 
 Here I paste some of the most useful possibilities.
 

i could found every key/special-key in keysymdef.h, but how can i 
combine some keys,
like control+s for save, or control+a for all, etc.. ?
i hope this is possible.

thanx!

Moritz

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] x11key, how can i simulate a space or a control s, etc

2007-03-22 Thread Alexandre Quessy
Hi again,

2007/3/22, moritz [EMAIL PROTECTED]:
 i could found every key/special-key in keysymdef.h, but how can i
 combine some keys,
 like control+s for save, or control+a for all, etc.. ?
 i hope this is possible.

I remember this was possible in my C tests, but I found some
difficulties when I implemented it in this pd external. Unfortunately,
I cannot find the xlib-test Ubuntu package : maybe I would need to add
more repositories, I forget. I was on Debian when I wrote that one.
Which distro are you using ? Maybe I should install it manually. Maybe
I could try to implement this within a few days. Key combinations are
some of the main interests in writing this kind of externals.

-- 
Alexandre Quessy
http://alexandre.quessy.net

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] x11key, how can i simulate a space or a control s, etc

2007-03-21 Thread moritz
ola

im playing around with x11key.

how can i simulate some special keys/ commands like space, tab, delete, 
control a, control c/v, control s, etc... with x11key?

i want to make my X very organic  :)

thanx

mORitz

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] x11key, how can i simulate a space or a control s, etc

2007-03-21 Thread Alexandre Quessy
Hi Moritz,
Eh ! Nice. Someone playing with my little X11 externals. :)

Yes, you can simulate any key press... even control keys and such. You
can see the list of the keys you can generate in the file
/usr/include/X11/keysymdef.h You need to send it only the part after
the XK_.

Here I paste some of the most useful possibilities.

-- 
Alexandre Quessy
http://alexandre.quessy.net


/*
 * Latin 1
 * (ISO/IEC 8859-1 = Unicode U+0020..U+00FF)
 * Byte 3 = 0
 */
#ifdef XK_LATIN1
#define XK_space 0x0020  /* U+0020 SPACE */
#define XK_exclam0x0021  /* U+0021 EXCLAMATION MARK */
#define XK_quotedbl  0x0022  /* U+0022 QUOTATION MARK */
#define XK_numbersign0x0023  /* U+0023 NUMBER SIGN */
#define XK_dollar0x0024  /* U+0024 DOLLAR SIGN */
#define XK_percent   0x0025  /* U+0025 PERCENT SIGN */
#define XK_ampersand 0x0026  /* U+0026 AMPERSAND */
#define XK_apostrophe0x0027  /* U+0027 APOSTROPHE */
#define XK_quoteright0x0027  /* deprecated */
#define XK_parenleft 0x0028  /* U+0028 LEFT PARENTHESIS */
#define XK_parenright0x0029  /* U+0029 RIGHT PARENTHESIS */
#define XK_asterisk  0x002a  /* U+002A ASTERISK */
#define XK_plus  0x002b  /* U+002B PLUS SIGN */
#define XK_comma 0x002c  /* U+002C COMMA */
#define XK_minus 0x002d  /* U+002D HYPHEN-MINUS */
#define XK_period0x002e  /* U+002E FULL STOP */
#define XK_slash 0x002f  /* U+002F SOLIDUS */
#define XK_0 0x0030  /* U+0030 DIGIT ZERO */
#define XK_1 0x0031  /* U+0031 DIGIT ONE */
#define XK_2 0x0032  /* U+0032 DIGIT TWO */
#define XK_3 0x0033  /* U+0033 DIGIT THREE */
#define XK_4 0x0034  /* U+0034 DIGIT FOUR */
#define XK_5 0x0035  /* U+0035 DIGIT FIVE */
#define XK_6 0x0036  /* U+0036 DIGIT SIX */
#define XK_7 0x0037  /* U+0037 DIGIT SEVEN */
#define XK_8 0x0038  /* U+0038 DIGIT EIGHT */
#define XK_9 0x0039  /* U+0039 DIGIT NINE */
#define XK_colon 0x003a  /* U+003A COLON */
#define XK_semicolon 0x003b  /* U+003B SEMICOLON */
#define XK_less  0x003c  /* U+003C LESS-THAN SIGN */
#define XK_equal 0x003d  /* U+003D EQUALS SIGN */
#define XK_greater   0x003e  /* U+003E GREATER-THAN SIGN */
#define XK_question  0x003f  /* U+003F QUESTION MARK */
#define XK_at0x0040  /* U+0040 COMMERCIAL AT */
#define XK_A 0x0041  /* U+0041 LATIN
CAPITAL LETTER A */
#define XK_B 0x0042  /* U+0042 LATIN
CAPITAL LETTER B */
#define XK_C 0x0043  /* U+0043 LATIN
CAPITAL LETTER C */
#define XK_D 0x0044  /* U+0044 LATIN
CAPITAL LETTER D */
#define XK_E 0x0045  /* U+0045 LATIN
CAPITAL LETTER E */
#define XK_F 0x0046  /* U+0046 LATIN
CAPITAL LETTER F */
#define XK_G 0x0047  /* U+0047 LATIN
CAPITAL LETTER G */
#define XK_H 0x0048  /* U+0048 LATIN
CAPITAL LETTER H */
#define XK_I 0x0049  /* U+0049 LATIN
CAPITAL LETTER I */
#define XK_J 0x004a  /* U+004A LATIN
CAPITAL LETTER J */
#define XK_K 0x004b  /* U+004B LATIN
CAPITAL LETTER K */
#define XK_L 0x004c  /* U+004C LATIN
CAPITAL LETTER L */
#define XK_M 0x004d  /* U+004D LATIN
CAPITAL LETTER M */
#define XK_N 0x004e  /* U+004E LATIN
CAPITAL LETTER N */
#define XK_O 0x004f  /* U+004F LATIN
CAPITAL LETTER O */
#define XK_P 0x0050  /* U+0050 LATIN
CAPITAL LETTER P */
#define XK_Q 0x0051  /* U+0051 LATIN
CAPITAL LETTER Q */
#define XK_R 0x0052  /* U+0052 LATIN
CAPITAL LETTER R */
#define XK_S 0x0053  /* U+0053 LATIN
CAPITAL LETTER S */
#define XK_T 0x0054  /* U+0054 LATIN
CAPITAL LETTER T */
#define XK_U 0x0055  /* U+0055 LATIN
CAPITAL LETTER U */
#define XK_V 0x0056  /* U+0056 LATIN
CAPITAL LETTER V */
#define XK_W 0x0057  /* U+0057 LATIN
CAPITAL LETTER W */
#define XK_X 0x0058  /* U+0058 LATIN