> I've just compiled your code and I get a lot "1" keys pressed dusrng 5 > seconds, so your code does the job... or do I miss something? It generates a key press and five seconds later a key release. Nothing more, nothing less. No repetition at all. xev output: --8<-- KeyPress event, serial 27, synthetic NO, window 0x2200001, root 0x89, subw 0x2200002, time 1828774, (37,45), root:(879,585), state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES, XLookupString gives 1 characters: "1" KeyRelease event, serial 27, synthetic NO, window 0x2200001, root 0x89, subw 0x2200002, time 1833774, (37,45), root:(879,585), state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES, XLookupString gives 1 characters: "1" --8<-- I probably need to find another function... But it's working for you? > This is how I compiled (on GNU/Linux (Debian) + XFree86 + gcc): > gcc testx.c -o testx -L/usr/X11R6/lib -lXtst -lX11 > ./testx > and yes, I called your snippet of code testx.c Yes, that's how I compile it too. > What X server etc are you running? XFree86 Version 4.2.1.1 (Debian 4.2.1-14 20031113215638 root@xxxxxxxxxxxxxxxxxx) / X Window System (The latest in Debian Sid.) > What is not working? Isn't the key repeated? Don't you want the key to > repeat? It's not being repeated at all. I want it to be repeated just like if I had pressed the 1 button physically on my keyboard. Thanks for your time! */ Christoffer Sawicki <qerub@xxxxxxx> _______________________________________________ XFree86 mailing list XFree86@xxxxxxxxxxx http://XFree86.Org/mailman/listinfo/xfree86