Question #478963 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/478963
Status: Open => Answered
RaiMan proposed the following answer:
If you want to set it up as a listener, best choice would be to use the
observeInBackground.
define suitable color images:
Pattern black = new Pattern(black.png).exact() // wanted match > 0.99
... other colors
Region1.onAppear(black, new ObserverCallBack() { //... see docs
Region1.observeInBackground( //.. see docs
in the callback code you can do what you want.
If everything is time critical, you have to eventually implement additional
threading.
I recommend version 1.1.1 and in doubt the javadocs.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp