CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 1999
    Posts
    535

    telling if the system has been idle for x minutes

    How can I tell if the system has been idle for x amount of minutes?
    kinda' like a screen saver runs after x minutes... how can I create an app that runs a prog after x minutes?
    thanks.. cube


  2. #2
    Join Date
    Jun 1999
    Location
    Redmond US
    Posts
    148

    Re: telling if the system has been idle for x minutes

    Hi

    Use WM_TIMMER.

    This message will be generated after the time period elapses which you will set using SetTimmer function . At this point you can call your program.

    Note - This function will be called every time when the specified interval elapses.

    regards
    Arun D

    Regards

    Arun Dayanandan
    Software Engineer
    Aditi Technologies Pvt Ltd
    Redmond US

  3. #3
    Join Date
    May 1999
    Location
    Jerusalem, Israel
    Posts
    251

    Re: telling if the system has been idle for x minutes

    You can install keyboard and mouse hooks, and remember time when last user action had performed. If the difference between current time and time when last mouse action had performed is more then X minutes, you can launch the needed program.

    Jack Shainsky
    Jerusalem, Israel
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured