Suspend / Hibernate pc with python

后端 未结 7 1494
庸人自扰
庸人自扰 2021-01-19 02:01

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

7条回答
  •  Happy的楠姐
    2021-01-19 02:41

    Get pywin32, it also contains win32security if I remember correctly. Then try the mentioned script again.

提交回复
热议问题