Detect user inactivity
I need to make a consol application thats run a aplication if user is inactiv.
How sholde I scan for inactivity in windows.
Is it possible to hav it use same function as this if user is inactive for some time.
Exempel: Inactivity.exe -20
After 20 sec ut lock down the workstation.
%windir%\system32\rundll32.exe user32.dll LockWorkStation