logkeys icon indicating copy to clipboard operation
logkeys copied to clipboard

Take a look at this, a cross-platform implementation of key logger.

Open GoogleCodeExporter opened this issue 10 years ago • 2 comments

Take a look at this project:

cHotKey (http://chotkey.googlecode.com)


It is a cross-platform hotkey program with key logging function.

Moreover, it can capture the title and class of focus window.

Original issue reported on code.google.com by [email protected] on 10 Sep 2012 at 8:41

GoogleCodeExporter avatar Jul 25 '15 13:07 GoogleCodeExporter

Hey, thanks for this insightful and concise paragraphs:

"""There are many methods to capture keystrokes under Linux: Using X11 
functions, input-subsystem, or I/O port.

The first way doesn't need root privileges but it can only capture key bindings 
with modifier key. i.e. It doesn't support global keyboard listening and 
doesn't support capturing a single modifier key. (At least as far as I have 
tried, that's true) The other ways need root privileges."""

With Xlib, have you tried with XCheckTypedEvent
http://tronche.com/gui/x/xlib/event-handling/manipulating-event-queue/XCheckType
dEvent.html

to extract an arbitrary XKeyEvent
http://tronche.com/gui/x/xlib/events/keyboard-pointer/keyboard-pointer.html#XKey
Event

waiting in the server queue?

Original comment by [email protected] on 11 Dec 2012 at 5:52

GoogleCodeExporter avatar Jul 25 '15 13:07 GoogleCodeExporter

Thanks for reply.

I am very busy these weeks, I will try it out as soon as I have time.

Original comment by [email protected] on 11 Dec 2012 at 4:00

GoogleCodeExporter avatar Jul 25 '15 13:07 GoogleCodeExporter