troubleshooting Question

Last time mouse moved or key pressed?

Avatar of mickn66
mickn66 asked on
.NET ProgrammingVisual Basic.NET
10 Comments1 Solution447 ViewsLast Modified:
I need a way to check when the last key was pressed, and when the mouse was last moved, regardless of whether or not my software has the focus.  I'm not afraid of system-wide hooks, having managed to get one working a few years ago, though I had to do some c++ programming because VB couldn't handle it (or was it managed software that couldn't handle it?) and I'd rather not have to re-learn all that.  Anyway I don't need to actually capture the keyboard press or the mouse movement, I just need to be able to periodically find out when was the last time the user hit a key or moved the mouse.  Thanks!
ASKER CERTIFIED SOLUTION
graye

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros