How to make the PC into sleep and resume from sleep

Asked by DamonYT on 2017-02-10

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2017-02-13
Last query:
2017-02-13
Last reply:
2017-02-10
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.

DamonYT (damon-yuan) said : #2

OK, I will have a try.
Thank you!

DamonYT (damon-yuan) said : #3

Thanks RaiMan, that solved my question.