I'm sorry I didn't understand that you tested the direction arrows in your code too, I modified just a little<br>your main (modified code pasted below) and it works like a charm, now I'll work out where the problem is in my<br>
calls.<br>Many many thanks,<br>Giuseppe.<br><br>        switch(i%4)<br>        {<br>            case 0:<br>                sendKey(disp, XK_Right, 0);<br>                printf("pressing right\n");<br>                break;<br>
            case 1:<br>                sendKey(disp, XK_Left, 0);<br>                printf("pressing left\n");<br>                break;<br>            case 2:<br>                sendKey(disp, XK_Down, 0);<br>                printf("pressing down\n");<br>
                break;<br>            case 3:<br>                sendKey(disp, XK_Up, 0);<br>                printf("pressing up\n");<br>                break;<br>            default:<br>                printf("what's wrong with me!\n");<br>
        }<br><br><br><br><div class="gmail_quote">On Tue, May 29, 2012 at 6:25 PM, Onur Küçük <span dir="ltr"><<a href="mailto:onur@delipenguen.net" target="_blank">onur@delipenguen.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On Tue, 29 May 2012 00:19:10 +0200<br>
Giuseppe Penone <<a href="mailto:giuspen@gmail.com">giuspen@gmail.com</a>> wrote:<br>
<br>
> Hi and thanks for your example code.<br>
> Using your function "sendKey" unfortunately all keysyms work but the<br>
> direction arrows,<br>
> result that I already obtained.<br>
> The direction arrows still produce the effect:<br>
> - up and down cause no visible effect<br>
> - right and left cause right+down and left+up.<br>
<br>
</div> Have you tried compiling and running that code by itself ? It is<br>
working here for arrow keys (up, down..) so depending on if it works by<br>
itself could give a hint where the problem might be.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
 Onur Küçük                                      Knowledge speaks,<br>
 <onur.--.-.<a href="http://delipenguen.net" target="_blank">delipenguen.net</a>>                     but wisdom listens<br>
<br>
_______________________________________________<br>
<a href="mailto:xorg@lists.x.org">xorg@lists.x.org</a>: X.Org support<br>
Archives: <a href="http://lists.freedesktop.org/archives/xorg" target="_blank">http://lists.freedesktop.org/archives/xorg</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg" target="_blank">http://lists.x.org/mailman/listinfo/xorg</a><br>
Your subscription address: <a href="mailto:giuspen@gmail.com">giuspen@gmail.com</a></div></div></blockquote></div><br>