Is there any way to deal with mac multiple space? --- no

Asked by Shuang Yang

I want to do my job on the current space and the script run on the other space in the background. But when I change the space, sikuli also changes the observing space, so it returns findfailed. I used getNumberScreens and get a result of 1. It seems sikuli doesn't consider multi spaces as multi screens? Is there any way to solve this?

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
RaiMan (raimund-hocke) said :
#1

Sikuli scripts generally cannot be run in the "background", since they access the real screen (what you see) and need full, uninterrupted access to mouse and keyboard (if such functions are used in the script, which normally the case, since this is the intention of using Sikuli).

On the same machine, scripts can only be run independently in a VM (e.g. VirtualBox), that isolates screen, mouse and keyboard usage against the host system.

Revision history for this message
Shuang Yang (ys-flowerdog) said :
#2

Thank you answering. I have one more question. I set a 15 min sleep time to the screen and never sleep to the system. It seems that sikuli failed to work after the screen goes in sleep, is that true?

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

If any screensaver comes into existence, Sikuli does not see anymore, what you expect in your script, since the real screen now displays the screensaver.

So take care somehow, that no screensaver comes up while a script is running.

If you want to save energy or protect your monitor with long running scripts, you might dim the brightness down to level 0, since this is only a physical aspect of your monitor.

Revision history for this message
Shuang Yang (ys-flowerdog) said :
#4

Thanks RaiMan, that solved my question.