JackieXie168 / logkeys

Automatically exported from code.google.com/p/logkeys
Other
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 zcn...@gmail.com on 10 Sep 2012 at 8:41

GoogleCodeExporter commented 9 years ago
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 kernc...@gmail.com on 11 Dec 2012 at 5:52

GoogleCodeExporter commented 9 years ago
Thanks for reply.

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

Original comment by zcn...@gmail.com on 11 Dec 2012 at 4:00