[Tutor] pyhook for Linux
Alan Gauld
alan.gauld at btinternet.com
Sat Jun 23 23:58:38 CEST 2007
"Flaper87" <flaper87 at gmail.com> wrote
> Does anyone knows an equivalence of pyhook for linux?
Nope.
> I need to catch the events of the mose (even the simple movement, or
> when it
> focus an icon on Desktop), and the events of the keyboard.
I think you need to look at the basic X windows event model.
In particular look at how Window Managers like twm/fvwm are
written.
Or the ubiquitous xeyes applet. It tracks the mouse all over
the screen so must catch the mouse events before forwarding
them to the applications.
These are written in C but should give you a clue as to which
events to catch and which windows/event queues to monitor
or API calls to make.
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list