Freigeben über


The customer is always right [Updated free tool and source code to prevent a machine from going to sleep!]

**

This blog has moved to a new location and comments have been disabled.

All old posts, new posts, and comments can be found on The blog of dlaa.me.

See you there!

Comments

  • Anonymous
    February 01, 2010
    The comment has been removed

  • Anonymous
    February 02, 2010
    The comment has been removed

  • Anonymous
    February 03, 2010
    Why not just change the "Run: Normal window" drop down in that last screenshot to "Run: Minimized"? Or is the KISS approach not OK for some reason?

  • Anonymous
    February 04, 2010
    The comment has been removed

  • Anonymous
    May 31, 2010
    What about the other request to hide the tray icon by default when run once as an option and make it appear in the tray if run the second time?

  • Anonymous
    May 31, 2010
    anonymuos, For a sample like this one, I don't think I like the idea of running the executable and having it hide itself completely away by default. The idea that running it a second time would show the notification icon is a nice way of handling the possible user confusion, but (as I said in a reply to a different request above) would increase the complexity of the sample. Given that I'm not sure this new behavior would be something most people would want, I've opted not to implement it so far.

  • Anonymous
    August 18, 2010
    Looks great now that it's minimizable! I like the idea of this method of sleep-prevention more than the methods used by some other programs, which trigger a key-press or a mouse-movement (even if they're just for a fraction of a second, I'd worry about it interfering with something I might be doing at just the wrong moment). But I am wondering, could you please try to clarify which OSes this program should work on? Windows 2000? Windows XP 32 / 64? Windows Vista 32 / 64? Windows 7 32 / 64? Server 2000? Server 2003 32 / 64? Server 2008 32 / 64? I'm surmizing it should be 'all of the above' hopefully, but confirmation would be nice. :-)

  • Anonymous
    August 18, 2010
    Anonymous, The underlying SetThreadExecutionState API is documented to work on Windows 2000 Professional/Server and later (independent of 32-/64-bittedness). Insomnia is a .NET 3.5 WPF application; .NET 3.5 is documented to work on  Windows Server 2003, Windows Server 2008, Windows Vista, Windows XP, and Windows 7 (regardless of 32-/64-bit). Therefore, I'd expect Insomnia to work on any machine that satisfies both requirements. :)

  • Anonymous
    October 06, 2012
    David... Thank you for this program!!! The 32 & 64 bit versions of the file won't start minimized using: -minimize However, the file in the .NET folder works as described.

  • Anonymous
    October 07, 2012
    The comment has been removed

  • Anonymous
    October 10, 2012
    The comment has been removed