Good work! Seems easy to use. I will probably use it instead of the current method using powercfg.exe. But I need two precisions. Can you confirm that the original EXECUTION_STATE is restored when the PC reboots after a crash?
Also, if I use blocksleep to launch x264, the PC will never sleep while the process is running. Fine. But when x264 has finished its job, the whole process is not finished yet. The batch file must still mux the elementary streams to MKV, and that can take up to 15 minutes or so. The question is: When the original execution state is restored because the x264 process ends, is it a risk that the PC goes to sleep immediately, or can I assume that the normal delay before going to sleep (due to no user actions) starts over at that time?
|