Generate X events (Xlib)
aivils at latnet.lv
Thu Jun 22 03:19:43 PDT 2006
On Ceturtdiena, 22. Jūnijs 2006 12:38, Alexandre Quessy wrote:
> Hi all,
> I am trying to generate X events. My main concern is about using that on
> Linux (Debian), but if I could do it on other platforms, namely Mac, this
> could be great.
> I tried to generate events using Xlib. I get no error, but my mouse doesn't
> move, and no key seems typed in my X. I wonder if I have done the right
> things. Also, it seems like I would have to create very big structs in
> order to generate some mouse events or such.
> Here is a piece of code trying to generate an event. The makefile is
> included. It is intended to build on Debian GNU/Linux.
> What am I doing wrong ? How can I generate X events in order to control
> graphical application on Linux ? Is there a protection flag in the kernel
> at compile time ? Thanks for helping.
Read source of xkeymouse:
Check out Xtest extension:
[root at as ~]# cat /var/log/Xorg.0.log | grep -i test
to make sure that you have the latest version.
(II) Initializing built-in extension XTEST
[root at as ~]#
More information about the xorg