Detecting idle users in Winforms

Within a timer you could p/invoke GetLastInputInfo() which will return the number ms since input was detected from the user, across all processes in the current session.

Leave a Comment