Applicaiton Timeout

  • Thread starter Thread starter Stanley
  • Start date Start date
S

Stanley

I am looking for a way to see if the user has done anything within my app
for about 30 ins. I figure I could probably add a hander for the mouse
clicks and for the keystrokes but I am not sure this is the best idea. Is
there a better way? Also how would I capture all keyboard and mouse clicks?

-Stanley
 
Try with a hook

here a snipet from the MSDN magazin

A Win32 Hooks Refreshe
In Win32, a hook is a mechanism by which a user-defined function can intercept a handful of system events before they reach an application. Typical events that hooks can intercept include messages, mouse and keyboard actions, and opening and closing of windows. The hook can act on events and modify the actual flow of code. A hook is ultimately a callback function that applications register with a particular system event

A detailed description can be found on
ms-help://MS.MSDNQTR.2003FEB.1031/dnmag02/html/cutting0210.ht

Or look generally in MSDN for "HOOK Windows .net

Hope that help

Thoma
 
Back
Top