1
Answer

Shut Down Machine If it is idle for 20 mins

gopi krishna

gopi krishna

10y
642
1
Hello All,


I am very much new to C#.  My Requirement is if my computer is idle for 20 mins I need to shut down. Every where I am getting code to shut down. But I need to check if it is idle for 20 mins then only I need to shut down. how to do this, please place some code
Answers (1)
0
Farhan Shariff

Farhan Shariff

NA 1.1k 111.4k 10y
you can check if the specific process that you want are not running and then call code to shut down or use a timer to check  state of process

This can help you

http://www.codeproject.com/Articles/30345/Application-Idle