Check if computer idle

How do I check how long the computer is idle using vb6. I'm sure its some api call could anyone give me a short code example?? Thanks.
LVL 1
EamonAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
AzraSoundConnect With a Mentor Commented:
you would have to look for input through keyboard and mouse...whenever either of these fire an event you would reset your timer that is calculating how long the system has been idle
0
 
ofirgCommented:
Public Declare Function GetTickCount Lib "kernel32" Alias "GetTickCount" () As Long
0
 
PBuckCommented:
GetTickCount is superb for a counter solution, but I am not sure that is what Eamon is looking for.

Do you want to know how long the computer has not been running any executables?  For instance, when you run Wintop (from the Kernal toys) - you can see what processes are using CPU time.  
0
 
EamonAuthor Commented:
Comment accepted as answer
0
All Courses

From novice to tech pro — start learning today.