467,188 Members | 1,403 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,188 developers. It's quick & easy.

Detect user activity

RP
I want to detect user activity (mouse move, key click). For certain
critical areas (Form in my app.), I want to check whether there is any
user activity for a certain interval. If not, then I want to log off
the Form. I don't want to user Timer controls. Is there any build
in .NET class that can do this and return user-activity.

Sep 20 '07 #1
  • viewed: 6548
Share:
2 Replies
On 20 Sep, 10:39, RP <rpk.gene...@gmail.comwrote:
I want to detect user activity (mouse move, key click). For certain
critical areas (Form in my app.), I want to check whether there is any
user activity for a certain interval. If not, then I want to log off
the Form. I don't want to user Timer controls. Is there any build
in .NET class that can do this and return user-activity.
I'm not aware of anything specifically for this, but it should be
quite easy to do yourself. Just intercept all key presses by using the
keypreview setting for the form plus the mouse events. If these are
triggered when a global flag indicates the restricted period, do the
required logging.

Sep 20 '07 #2
This is not precisely what you're looking for, but very similar:

http://www.geekpedia.com/tutorial210...nput-Time.html

It will retrieve the idle time and last input time, but operating
system-wise instead of form-wise.

"RP" <rp*********@gmail.comwrote in message
news:11********************@e34g2000pro.googlegrou ps.com...
>I want to detect user activity (mouse move, key click). For certain
critical areas (Form in my app.), I want to check whether there is any
user activity for a certain interval. If not, then I want to log off
the Form. I don't want to user Timer controls. Is there any build
in .NET class that can do this and return user-activity.
Sep 20 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Kenneth Courville | last post: by
1 post views Thread by jdph40@yahoo.com | last post: by
3 posts views Thread by Law | last post: by
1 post views Thread by Terry Olsen | last post: by
5 posts views Thread by Ke Tao | last post: by
2 posts views Thread by =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.