How to make the PC into sleep and resume from sleep

Asked by DamonYT

I am a newer of Sikuli

I want to make the PC into sleep and then resume from sleep automatically. But I donnot konw how to achieve this with Sikuli.

I can make the pc into sleep with the help of pic, but I donnot konw how to achieve this only with the programming language without the help of pic

I also want to know how to resume the PC from sleep after 5 min I set the pc into sleep.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Best RaiMan (raimund-hocke) said :
#1

SikuliX does not have features to support wake-up from sleep mode.
You have to watch out for any utilities, that might do that and are started in the script before going to sleep.

To put it to sleep, just type the respective keys in the script as you would do it manually.

Revision history for this message
DamonYT (damon-yuan) said :
#2

OK, I will have a try.
Thank you!

Revision history for this message
DamonYT (damon-yuan) said :
#3

Thanks RaiMan, that solved my question.