Solved

Keystroke Count and Idle Time

Posted on 1998-03-20
1
316 Views
Last Modified: 2013-12-03
I support an app that is used by data-entry clerks running on win95, I'd like to capture their keystroke count and idle time for reporting.  Any nifty pieces of code or tips out there for capturing this type of info?

0
Comment
Question by:robsdman
1 Comment
 
LVL 11

Accepted Solution

by:
alexo earned 50 total points
ID: 1412185
See the SetWindowsHookEx() API.  You can capture keystrokes using a WH_KEYBOARD hook either globally or per-thread.  You can calculate the idle time by noting the time when each keystroke arrives.

See the SetWindowsHookEx() documentation.  Visual C++ also contains sample applications.

If you want to integrate the capturing into the application itself, you can preprocess the keyboard messages (WM_KEYDOWN, etc.) or WM_CHAR messages.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Method 'OpenReport' of the object Docmd failed 7 28
Is AWS.RDS considered a part of "Big Data"? 4 96
Dialogbox API leak? 18 81
Using MS Code on my Mac 6 66
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now