robert wrote:
On Windows the task scheduler tool can program (the BIOS?) to weak up
the machine from standby/hibernate at certain pre-configured times. Can
this be done directly through the (py)win32 API?
robert
What you need is a Waitable Timer.
The APIs to manipulate these are:
win32event.Crea teWaitableTimer ()
win32event.SetW aitableTimer()
win32event.Canc elWaitableTimer ()
The wakeup feature is enabled when the last parameter of the call to
SetWaitableTime r is True.
However, pywin32 seems to be missing a binding for the
SetThreadExecut ionState() function so unless a person moves the mouse or
keyboard within a minute or two of the wakeup, the system just goes back
to sleep.
You should be able to call the SetThreadExecut ionState function using
ctypes.
Search for Power Management in the MSDN library for info on these functions.
--
Jesse Hager
email = "wr********@tzn vy.pbz".decode( "rot13")