<div class="gmail_quote">On Wed, Oct 7, 2009 at 4:01 PM, Hristos Giannopoulos <span dir="ltr">&lt;<a href="mailto:sotsirh194@gmail.com">sotsirh194@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is it possible for a python script to make a windows computer sleep or wake from sleep? Preferably in windows?
<br></blockquote><div><br>I think your best bet for controlling Windows power management with Python will be the pywin32 module, at <a href="http://sourceforge.net/projects/pywin32/">http://sourceforge.net/projects/pywin32/</a><br>
It wraps the Win32 API so that Python scripts can call it.<br>You&#39;ll find there&#39;s not much documentation for pywin32, but you won&#39;t need much, because what you really need to know is how to use the API to do what you want.  <br>
<br>Just Google for that - there&#39;s a huge body of information available on the Web about using the Win32 API - then use pywin32 to wrap whatever API call you find.<br clear="all"></div></div><br>-- <br><a href="http://www.fsrtechnologies.com">www.fsrtechnologies.com</a><br>