Re: keystroke logger for Mac OS X
Re: keystroke logger for Mac OS X
- Subject: Re: keystroke logger for Mac OS X
- From: Dave DeLong <email@hidden>
- Date: Mon, 13 Oct 2008 08:24:53 -0600
Use a CGEventTap for the keystroke capturing, and the NSWorkspace
class to get the info you need about the frontmost app. Writing it to
a file is trivial.
Dave
On Oct 13, 2008, at 5:16 AM, apple apple wrote:
I need to write a keystroke logger for Mac OS X. I am debating which
architecture to use. Can this be accomplished efficiently from user
space or
would a KEXT be needed? It needs to be fast and efficient.
Ideally the logger will not impact system performance in any way. Also
ideally it should comply with the following:
- Runs under 10.5 and 10.4 would also be nice.
- Must log every keystroke typed to a file.
- Should capture the name of the app in which the keystrokes were
typed.
- Should capture the title of the window in which the keystrokes are
typed.
- Ideally the logger should use notifications rather than polling so
that
the logger code only gets called when an actual keystroke happens.
Any ideas on what the best architecture would be to accomplish this?
Thanks
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden