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