473,388 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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
2 7190
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Hans Deragon | last post by:
Greetings. If I want to write a screensaver for Linux using Python, how can I detect that the user has not touched the keyboard or mouse for the last 5 mins? Sincerely, Hans Deragon --
4
by: Kenneth Courville | last post by:
Hello, I have an application that will be logging to a SQL Server 2000 database user user activity from several Windows 2003 terminal servers. This information will be retrieved by monitoring...
2
by: dude | last post by:
How do I detect that there has been no activity on a form in an Access 97 Database Paul thanks
1
by: jdph40 | last post by:
I am using Access 2002. I downloaded the forms sample database FrmSmp97.mdb from Microsoft and used the following code in the timer event of a hidden form in order to close a database if no...
3
by: Law | last post by:
To all the VB master, i'm new baby in VB. I would like to get ur's advice on how to stop the application when user is not in use within 5 or 10mins? Hope to hear VB master soon. Tks, Law
1
by: Terry Olsen | last post by:
I have a chat application. I want it to show the user as "away" if no activity on the computer occurs for a certain amount of time. I have a timer that I set for the correct interval, when it...
5
by: Ke Tao | last post by:
HI All, Is there anybody have an idea of how to detect internet is reachable ? At present , I'm using ping to detect internet is reachable , but it's maybe a bad idea , some firewall of router...
5
by: michael234 | last post by:
Hi All, Before i get into things I'm writing in C# using VS2003 with framework 1.1. I am having a problem accessing a user control in the code behind. I'm using the user control for some...
2
by: =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post by:
Hi, I want an app that I'm writing to be able to hide itself whenever it hasn't been used for say 10 minutes. Is there a smart way to detect user activity within an app. Kind of overall...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.