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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

MDI App Timeout 1
User Inactivity Timer 4
Capturing mouse, key events 22
Universal Dock 13
Which wireless gaming mouse to buy ? 7
New Build for my Son 38
Swiftpoint Z Mouse 2
Problem with SetCapture 4

Back
Top