Day 17 - WPM Tray
Tonights application is a Words Per Minute meter in your systray. The algorithm used to determine a word is VERY simple (a space, tab, or return separated by anything else).
It's a green box for 0-99wpm, a gold box for 100-199wpm, and a red box for 200-299wpm. For 300+ it turns all white. No one types THAT fast, do they? The colors were used to avoid handling 3 characters in that tiny icon.
At the last minute, I added a history graph. It records the last 15 mins of typing on a graph. Double click the icon to see it, double click the graph to hide it. The graph IS resizeable even though the resize handles don't show. I didn't have time to play with the cursor, and I implemented a custom padding for resize because .NET's form borders are just plain ugly.
This is easily going to become one of my favorites so far! Source code has a great example of overriding the onPaint method of a custom control to paint a graph. That control was just written by me - NOT ripped from anywhere else ;).
Download the app here
Download the source here
May the source be with you.