Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Small menulet that counts keystrokes. Not very useful
branch: master

This branch is even with robhurring:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.images
KeyTaps.xcodeproj
KeyTaps
.gitignore
Icon.icns
README.md

README.md

KeyTaps (OSX Lion only)

It started as a thought. How many keys to you type in a given day as a developer? How long would it take you to reach 1M keystrokes? I figured it couldn't be hard to make a very basic key logger that just keeps track of how many keys you type in a given "session." Turns out it wasn't too bad... it is, however, mostly useless :)

I'm still reading this

Well, its about this easy I found out:

unsigned long taps;
monitor = [NSEvent addGlobalMonitorForEventsMatchingMask:NSKeyDownMask handler:^(NSEvent *event)
{
  taps++;
}];

The app kind of spiraled down some weird paths from there... It is also lion specific since I used menu views in a few places, which aren't supported < Lion.

Screens!

Heres how it sits in your menu:

in menu

And if you want to run a focused session as you code (to watch the numbers fly on by!) It currently tracks your last 5 sessions. The each time you reset the session your total goes into your daily aggregate bucket. (Not very accurate across multiple days).

session

Nothing too brutal, but still interesting to see what you can type in a given day. (The numbers in these screens are actually pretty low.)

Something went wrong with that request. Please try again.