How to detect inactive (idle) user in Windows application? I\'d like to shutdown application when there hasn\'t been any input (keyboard, mouse) from user for certain period
This SecondsIdle doens't work at all. The way is to use a TTimer combined with a second variable that resets every time user inputs mouse or keyboard.