sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08968
Re: [Question #188555]: OpenCV Error on starting event observer
Question #188555 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/188555
Status: Open => Answered
RaiMan proposed the following answer:
This refers to comment #4:
Your approach principally does not really make sense.
The value in changeM is an arbitrary region of 50 pixels (about 7x7),
that has changed in the observed region (monitoredR = subMenusR --- BTW:
why not a parameter to mapSubMenu). Normally it is not useable for
anything.
The area, that you have to look for your submenu texts is the space
below the match returned by mainMenu.click(mainMenuLabel);
The "changed regions" return value does not contain the region in total
that has changed. You might analyze the returned changes with a strategy
"most-top-left-change" and "most-bottom-right change" and construct the
whole "change region" from that.
BTW: dealing with the observe subprocesses your self is at least risky,
since you might leave the Sikuli environment in an undefined state. I
doubt the developers have not programmed anything for such a situation.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.