Possible Duplicate:
C# - Detect time of last user interaction with the OS
I'm building a Windows Form software with VS 2010/ C#, I want to update the software every day when the user don't use the computer.
Can anyone suggest me how can I detect if the user uses the computer right now?? I've tried to check if the user click on the keyboard or moveing the mouse for the last 10 min, but the problem is if he see a movie and he don't move anything.. I'm acctuly want any suggestion how to check if the computer turn on and the user don't use it..
thanks you all have a nice day