User Idle Time

  • Thread starter Thread starter Dr. Björn Kesper
  • Start date Start date
D

Dr. Björn Kesper

Hi,

I'm searching for some kind of event or maybe a system variable that I can
query if there is no user input (mouse movement or keyboard input) for a
given time period.

Thanks!
 
Hi

I think we may need to set a System wide global hook for mouse and keyboard
to see if there is any related message occur in a period of time.
WH_MOUSE_LL
WH_KEYBOARD_LL

SetWindowsHookEx Function
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui
/windowsuserinterface/windowing/hooks/hookreference/hookfunctions/setwindows
hookex.asp

Here is a .net sample for your reference.
Global System Hooks in .NET
http://www.codeproject.com/csharp/GlobalSystemHook.asp?msg=865034#xx865034xx

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top