Wednesday, June 16, 2010

System Idle Detector - Custom User Control


Introduction
Idle Detector is a custom user control for window base application and it can be used to detect whether the OS is in idle or not by checking with user define wait second(s)

Using the Control
Property

  • WaitSeconds
    • Define the OS idling seconds in order for user control to determine when the OS is in idle mode
    • Minimum : 1 Second(s)
    • Maximum : 86400 Second(s)
  • IsCounting
    • Flag to determine whether Idle Dectector start idle counting
    • True: Start Checking
    • False: Stop Checking
  • -IsIdle
    • Flag to determine whether current system is in idle mode
    • True : Idlemode
    • False : User's input received
 Events

  • IdleCounting : Occurs when IdleDetector start retrieving the OS uptime and idle time
  • MaxIdling : Occurs when user define wait seconds meet with the idle seconds and changed into idle mode
  • StatusChanged : Occurs when Start or Stop checking function has been called
  • SystemWakeUp : Occurs when user's input received and wake up from idle mode
 Others Information
  • Language : C#
  • Dot Net 2.0 Framework

Demo Sample

Demo Guide:
  1. Define the WaitSeconds at the Property Grid to let the control knows when to treat OS idle as idle mode to the application
  2. Check the Start Checking check box to start the idle checking
  3. The text box will show the log of event being triggered by the idle detector
  4. Limitation of Demo Version. 5 minutes runtime

DOWNLOAD

Visual Studio 2008: IdleDetectorDemo.zip 
Visual Studio 2010 : IdleDetectorDemo2010.zip



Price
RM30
Package Include
  • IdleDectector.dll
  • Sample Source Code to utilize IdleDectector User Control
  • User Control Guide

Please contact ecodesurf@gmail.com to purchase the full version