D Danya Samuel via .NET 247 Jan 23, 2005 #1 Can anyone tell me how to track the system's idle time using vb.net?
A Adam Goossens Jan 25, 2005 #2 Hi Danya, Have a look at the unmanaged function GetLastInputInfo: http://msdn.microsoft.com/library/d...e/keyboardinputfunctions/getlastinputinfo.asp You'll have to do some P/Invoke'ing (something I know very little about). Alternatively, here's an article from Code Project which might help you: http://www.codeproject.com/csharp/uim.asp The article is written in C#, but you can easily translate the concepts to VB.NET. Regards, -Adam.
Hi Danya, Have a look at the unmanaged function GetLastInputInfo: http://msdn.microsoft.com/library/d...e/keyboardinputfunctions/getlastinputinfo.asp You'll have to do some P/Invoke'ing (something I know very little about). Alternatively, here's an article from Code Project which might help you: http://www.codeproject.com/csharp/uim.asp The article is written in C#, but you can easily translate the concepts to VB.NET. Regards, -Adam.