I\'d like to write a short python script that puts my computer to sleep. I\'Ve already searched the API but the only result on suspend has to do with delayed execution. What
import os os.system(r'rundll32.exe powrprof.dll,SetSuspendState Hibernate')