Ask a questionAsk a question
 

AnswerEvent for screensaver active/deactive

  • Saturday, October 31, 2009 8:36 PMthsundel Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,
    I was wondering if there is an event called when screensaver is being activated and when sceensaver is deactivated?
    I would like to write an application that should only run when sceensaver is active.

    Thomas

Answers

  • Saturday, October 31, 2009 10:50 PMDavid M MortonMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    I think this link will answer your question.

    There's no event that is called when the screensaver is running.  Typically, most of the applications that do work only while the computer is idle are either screensavers themselves, or they run quietly in the background sleeping constantly and only starting to do any real work once the screensaver starts to run.  So to answer your question, you'll need to add something to the startup menu, and have it check, say, every minute or so to see if the screensaver is running.  If it is, it should start doing the "real" work.  Once the screensaver isn't running anymore, you need to make sure you've put facilities in place to stop the work you were working on.


    Coding Light - Illuminated Ideas and Algorithms in Software
    Coding Light WikiLinkedInForumsBrowser

All Replies

  • Saturday, October 31, 2009 10:50 PMDavid M MortonMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    I think this link will answer your question.

    There's no event that is called when the screensaver is running.  Typically, most of the applications that do work only while the computer is idle are either screensavers themselves, or they run quietly in the background sleeping constantly and only starting to do any real work once the screensaver starts to run.  So to answer your question, you'll need to add something to the startup menu, and have it check, say, every minute or so to see if the screensaver is running.  If it is, it should start doing the "real" work.  Once the screensaver isn't running anymore, you need to make sure you've put facilities in place to stop the work you were working on.


    Coding Light - Illuminated Ideas and Algorithms in Software
    Coding Light WikiLinkedInForumsBrowser
  • Tuesday, November 03, 2009 8:08 PMthsundel Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Okay, thanks for this info.. Have to hack something together then.

    Thomas