473,396 Members | 1,683 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,396 software developers and data experts.

Get the idle time

Hello.
I wanna create a program like Screen Saver. So please help me how could I
know that how long has the latest action (Keyboard/mouse) acted. Thanks.

Best regards.
Nov 21 '05 #1
4 4928
"Allen St.Clair" <al************@msn.com> schrieb:
I wanna create a program like Screen Saver. So please help me how could I
know that how long has the latest action (Keyboard/mouse) acted.


<URL:http://groups.google.de/groups?selm=epRV2mErEHA.324%40TK2MSFTNGP11.phx.gbl >

HOWTO track a user's idle time
<URL:http://www.codeproject.com/dll/trackuseridle.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Allen,

In the 101 vb.net samples there is a screen saver example maybe you can find
it there.

http://www.microsoft.com/downloads/d...d=08e3d5f8-033...

I hope this helps,

Cor

Nov 21 '05 #3
Thanks you all.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ez**************@tk2msftngp13.phx.gbl...
"Allen St.Clair" <al************@msn.com> schrieb:
I wanna create a program like Screen Saver. So please help me how could I
know that how long has the latest action (Keyboard/mouse) acted.


<URL:http://groups.google.de/groups?selm=epRV2mErEHA.324%40TK2MSFTNGP11.phx.gbl >

HOWTO track a user's idle time
<URL:http://www.codeproject.com/dll/trackuseridle.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
But, how can I use this API code in VB.Net ?
Can the callback function be invoked between managed code and binary code?

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ez**************@tk2msftngp13.phx.gbl...
"Allen St.Clair" <al************@msn.com> schrieb:
I wanna create a program like Screen Saver. So please help me how could I
know that how long has the latest action (Keyboard/mouse) acted.


<URL:http://groups.google.de/groups?selm=epRV2mErEHA.324%40TK2MSFTNGP11.phx.gbl >

HOWTO track a user's idle time
<URL:http://www.codeproject.com/dll/trackuseridle.asp>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: los | last post by:
Hi, I'm trying to create a program similar to that of Google's desktop that will crawl through the hard drive and index files. I have written the program and as of now I just put the thread to...
3
by: john | last post by:
I don't want to know what the CPU utilization is right now. I want to get the average utilization over the last, for example, hour. So I came up with a method where I would get a Process object...
19
by: Frank Rizzo | last post by:
I want to log the user out when there has been a period of inactivity in the application. The key here is inactivity of the application, not the system. I know that you can retrieve the...
3
by: Jim G | last post by:
Hi, We have a limited number of licenses to some software we have installed on our users desktops. The problem is that sometimes the users open up the application and then don't use it all day....
2
by: henk | last post by:
I have a hard time to get the idle time only from my application. (a relogin box should appear after eg 1 min, when a user switch to word and start typing for 10min, the re-login should not appear....
33
by: ram.ragu | last post by:
hi i have problem to calculate idle time of cpu and if idle time is more then i have to shut down the system. can anyone tell me the idea to so that please
5
by: sam | last post by:
hi all, i continue to footle around on my spanking new ultra 20 (1.8GHz / Opteron Model 144), gradually trying to get to grips with python and unix both. the slow print time in IDLE had...
3
by: writser | last post by:
hey all, For my study I'm writing a simple threaded webcrawler and I am trying to do this in python. But somehow, using threads causes IDLE to crash on Windows XP (with the latest python...
5
by: Russ P. | last post by:
I've been programming in python for a few years using XEmacs on Solaris and Linux. I've been thinking about trying IDLE for a long time, but either it wasn't available on my system or I...
6
by: Andreas Tawn | last post by:
I'm trying to integrate the timeout function from here http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473878 into a long running automation script and the following code causes IDLE after...
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:
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.