UtilWindowsSystemIdleTime Property
Retrieves the time of the last input (mouse or keyboard) event in the operating system.
That is, the last time the user has pressed a key or used the mouse.
Namespace: DevCase.Core.Windows.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static TimeSpan SystemIdleTime { get; }
Public Shared ReadOnly Property SystemIdleTime As TimeSpan
Get
Dim value As TimeSpan
value = UtilWindows.SystemIdleTime
public:
static property TimeSpan SystemIdleTime {
TimeSpan get ();
}
static member SystemIdleTime : TimeSpan with get
No code example is currently available or this language may not be supported.
Property Value
TimeSpan
The time of the last input (mouse or keyboard) event in the operating system.
This is a code example.
No code example is currently available or this language may not be supported.
Do While True
Label1.Text = SystemIdleTime.ToString("dd\.hh\:mm\:ss\:fff") ' Days.Hours:Minutes:Seconds:Milliseconds
Thread.Sleep(50)
Application.DoEvents()
Loop
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.