Powering off a pc.
How do I power off a pc using sleep, hibernate and the classic shutdown?
Kind regards,
Ben
How to put a computer in sleep or hibernation or power off?
Moderators: Dorian (MJT support), JRL
You should be able to use Macro Scheduler's Libfunc> to call Windows API library functions.
Look up ExitWindowsEx On the Microsoft website for power down options.
The following example shuts down all processes and logs off the current user.
LibFunc>user32,ExitWindowsEx,EWEres,0,1
Look up SetSuspendState On the Microsoft website for hibernate options.
I did not try to come up with a hibernate example. Sorry.
Look up ExitWindowsEx On the Microsoft website for power down options.
The following example shuts down all processes and logs off the current user.
LibFunc>user32,ExitWindowsEx,EWEres,0,1
Look up SetSuspendState On the Microsoft website for hibernate options.
I did not try to come up with a hibernate example. Sorry.