Jump to content

Waking up a PC after a certain amount of time


Recommended Posts

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

Link to comment
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

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...