sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #42051
Re: [Question #593074]: I'm trying to intialize Screen class inside a Callable in Java but its stuck until Callable timeout
Question #593074 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/593074
Status: Open => Answered
RaiMan proposed the following answer:
SikuliX 1.1.x is not threadsafe in any case and will never be.
Try this:
at startup of your app, before doing anything else put:
Screen globalScreen = new Screen();
this should initialize the SikuliX internals.
... and then you could use the object globalScreen all over the place as
some "singleton".
Take care, that SikuliX features are not run in parallel without some
basic locking.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.