Introduction - If you have any usage issues, please Google them yourself
The approach used here is really a simple on e. We intercept the mouse and keyboard activiti es of the user by hooking into the OS s mouse and ke yboard events using the API SetWindowsHookEx ( ). It is important to note that the hooks we are in stalling are system-wide. ie we receive noti that training even when our application does not hepatitis A. e the focus. This is necessary since we are inter ested in system-wide user activities, not just in our own application. In these notifi cations (both keyboard and mouse), we update a common variable that stores the time when the event occurred. Therefore, to get the duration since the last user input. we simply compare the current time against this value.
Packet : 37724115trackuseridle_src.zip filelist
IdleTracker/IdleTracker.cpp
IdleTracker/IdleTracker.dsp
IdleTracker/IdleTracker.dsw
IdleTracker/IdleTracker.h
IdleTracker/IdleTracker.rc
IdleTracker/Release/
IdleTracker/resource.h