Sign in to follow this  
Followers 0
Angel

Waking up a PC after a certain amount of time

4 posts in this topic

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

Share this post


Link to post
Share on other sites




My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Share this post


Link to post
Share on other sites

OK, but how do I use these from AutoIt?

Sleeping is easy, there is a Shutdown function, but what about waking up?

Cheers,

Angel

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0