Angel Posted July 4, 2005 Posted July 4, 2005 Hi,I'd like to have one of my scrits put my PC in stand-by mode and then be able to wake it up at a certain time (or after a certain amount of time).I've found out a free program called WakeupOnStandBy that does just that. The problem is that it does not accept command line options and also that it seems to require the .net framework. I'd rather have a more general solution. Therefore I wonder if it is possible to do it directly from AutoIt. I've also found this other web page that gives some C code to do this. I wondered if someone here had already done something like this or someone would be kind enough to tell me how to do this with AutoIt.Cheers!Angel
w0uter Posted July 4, 2005 Posted July 4, 2005 didnt look long but you can hibernate your pc by using:http://msdn.microsoft.com/library/default....mpowerstate.aspand getting it out of it by:http://msdn.microsoft.com/library/default....cutionstate.aspfor more functions check:http://msdn.microsoft.com/library/default....t_functions.asp My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Angel Posted July 4, 2005 Author Posted July 4, 2005 OK, but how do I use these from AutoIt? Sleeping is easy, there is a Shutdown function, but what about waking up? Cheers, Angel
w0uter Posted July 4, 2005 Posted July 4, 2005 (edited) BY HEAD: EXECUTION_STATE SetThreadExecutionState( EXECUTION_STATE esFlags ); would turn into something like: DllCall('kernel32.dll', 'long', 'SetThreadExecutionState', 'long', 0x00000001) ofcourse you need to replace 0x00000001 with the desired flags (if this even works lol) Edited July 4, 2005 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now