Retrieves the time that has elapsed since the last input
#include <WinAPISys.au3>
_WinAPI_GetIdleTime ( )
Success: | The elapsed time, in milliseconds. |
Failure: | 0. |
Search GetLastInputInfo in MSDN Library.
#include <WinAPISys.au3>
For $i = 1 To 5
ConsoleWrite('Idle time (ms): ' & _WinAPI_GetIdleTime() & @CRLF)
Sleep(1000)
Next