Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: How to disable sleep mode programmatically

20 May 2010   #1

Windows 7
 
 
How to disable sleep mode programmatically

I have a vb.net application that runs for several hours. The problem I am having is that Windows 7 goes to sleep while my application is running. I know I can manually disable the sleep mode, but I am hoping there is a way I can enable/disable the sleep mode from within my vb.net application. That way I can disable the sleep mode when my program starts and I can enable it again when my program finishes. Is there a way to do this? Is there another way to prevent Windows 7 from going to sleep while my program is still running? Is there a DontGoToSleepBecauseMyProgramIsStillRunning command that I can execute every few minutes to prevent Windows 7 from going to sleep while my program is running?

My System SpecsSystem Spec
.

20 May 2010   #2

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

You can download the app called Insomnia.

http://cesso.org/Samples/Insomnia/Insomnia.zip
My System SpecsSystem Spec
Reply

 How to disable sleep mode programmatically





Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:25 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33