11 Nov
How to detect system idle time
If you want to detect user inactivity even if your application is in background (has no focus), it’s really simple. You can achieve this using GetLastInputInfo function.
If you want to detect user inactivity even if your application is in background (has no focus), it’s really simple. You can achieve this using GetLastInputInfo function.
This tip is very simple. Just use standard function GetTickCount and the rest is just elementary mathematics.