views:

67

answers:

1

I want to make a program to wake me up, but if I leave it and go to sleep the pc ends up sleeping. How can I force it to never sleep if this application is running?

I'm on Windows 7 x64.

+1  A: 

The keyword you are looking for is "Power Management".

Try this article: http://msdn.microsoft.com/en-us/magazine/cc163386.aspx

Or even better, another similar StackOverflow question:

http://stackoverflow.com/questions/629240/prevent-windows-from-going-into-sleep-when-my-program-is-running

Ants