Do anyone know how to put a computer into standby mode through code?
TIA,
XinMan
Printable View
Do anyone know how to put a computer into standby mode through code?
TIA,
XinMan
You need to add a module like below:
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Then in the code add something like the following:
Sleep (10000) ' puts program to sleep for about 10 seconds