Re: Simulating a mouse click



Thanks for your mail, I will take a look at the GDK-events API.
Someone pointed me to the XTest extension,which has a function
(XTestFakeButtonEvent) that does exactly what I need.

Bosko

> Oh come on.  He already told you what he's trying to do.  What more do
> you want from him?  If you don't know how to do it, then leave the man
> alone.  There are plenty of very good reasons to simulate mouse clicks
> and other events.  A macro recording/playback system is one such use. 
> An accessibility framework that allows you to manipulate the mouse
> cursor from the keyboard is another.
> 
> In fact, we have such an accessibility framework.  However, I don't know
> if it actually creates the X events or just the GTK signals that result
> from the X events.  There seems to be some ability to do this with the
> GdkEvent API:
> 
> http://developer.gnome.org/doc/API/2.0/gdk/gdk-Events.html
> 
> However, I don't know if this works with X windows that aren't managed
> by GDK.
> 
> --
> Shaun
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]