Wake up from sleep or hibernate

Asked by SleepBug

Hi~
I wonder to know if it's possible to wake up from sleep or hibernate with Sikuli?

It seems it can't execute the following code when press "Sleep" button.

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

I guess you have to wrap your call to the relevant script into something, that triggers the wake up.

When pressing Sleep, latest in the moment, the screen deactivates, the script should stop with a FindFailed on the next find operation (as it goes with screen savers and screen deactivations).

Or you might find some feature, that is either written in Python and Jython compatible or some external feature to call from your script (e.g. as a thread). But I think this would be far more complex.

Revision history for this message
SleepBug (blueandy0422) said :
#2

Thanks RaiMan, that solved my question.