# Finding if system is idle

**URL:** <https://forum.kirupa.com/t/finding-if-system-is-idle/221554>\
**Category:** Uncategorized\
**Created:** [April 5, 2007, 5:08am UTC](https://forum.kirupa.com/t/finding-if-system-is-idle/221554 "2007-04-05T05:08:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jitendra\_jkr](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jitendra\_jkr](https://forum.kirupa.com/u/jitendra_jkr)\
**Post date:** [April 5, 2007, 5:08am UTC](https://forum.kirupa.com/t/finding-if-system-is-idle/221554/1 "2007-04-05T05:08:54Z")

</div>

Hi,  
I am working on C#.net window application.  
i want some code in C#.net to know if sytem is idle.  
my problem is - if user does not touch keyboard or mouse for some time, system go to sleep mood and screensaver starts.

I want to know when system go in this state, also when he/she move mouse or press any key, then do some work using c#.net code.

please help me if anyone have solution.
