I\'m trying to do a away timer style thing like Skype. If the user is \'away\' for a period of time I\'ll trigger something. I have been using SetWindowsHookEx() with WM_KEY
Have a look at GetLastInputInfo(). Try calling that periodically.