sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05863
Re: [Question #173203]: image found, but region location wrong
Question #173203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/173203
Status: Open => Answered
RaiMan proposed the following answer:
--- exact() does not work correctly
seems to be a bug. use .similar(0.99) instead
--- match in different locations
It seems, you are searching the whole screen. If yes: this generally does not make sense: bad speed and accuracy.
narrow the region for the search of the BP-symbol to the column in the VS window, where it should appear.
Since the VS window is somehow structured, it is rather easy to search/calculate a region for that.
so this should work as you want:
col = <some-calculated-region>
with col:
if exists("BreakpointArrow.png", 300):
m = getLastMatch()
m.highlight()
or
col = <some-calculated-region>
if col.exists("BreakpointArrow.png", 300):
m = col.getLastMatch()
m.highlight()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.