Re: Keys combinations interception



On Thu, 2003-03-27 at 12:26, Tornado wrote:
How can i intercept a key pressed in any application and in the X Window
system?  I've already tried gdk_event_get(); but it doesn't work and
i tried also the key snooper but it intercepts only the key on its own
window
I'd like to intercepts a combination of keys (ex: CTRL+k) in all
the X window system like a keylogger Is it possible?

You'll need to use Xlib and XGrabKey() directly ... GTK+ doesn't
try to wrap this stuff.

metacity, gnome-panel, gnome-settings-daemon (in control-center), etc,
are examples of GTK+ programs that do this.

Regards,
                                         Owen






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