I need to perform standby test,
froce the computer to standby(S1,S3,Hibernate).
in addition the computer should wakeup after X sec.
I'm using TC5 with VB sysntax.
Re: Perform Standby.
You can use the following script to put your computer on Hibernate or Standby mode:
<font class="small">Code:</font><hr /><pre> ' VBScript
Set Def_DLL = DLL.DefineDLL("PowrProf")
Call Def_DLL.DefineProc("SetSuspendState", vt_b1, vt_b1, vt_b1, vt_b1)
Set Lib = DLL.Load("PowrProf.dll", "PowrProf")
Call Lib.SetSuspendState(hibernate, false, false) ' Hibernate mode
Suspend(true) ' Put the machine on Hibernate
Please refer to the following MSDN Library article for more information on the SetSuspendState procedure:
You can enable the "RTC Alarm Power On" BIOS option to wake the computer at a specific time.