image found, but region location wrong
Asked by
Beth Griffin
I have been trying to clean up some image matching issues.
I have a sikuli script that observes MS Visual Studio until a breakpoint is hit:
if exists(
m = getLastMatch()
m.highlight()
I expected the highlight to show up around the yellow arrow on the screen. Instead, it shows up anywhere but the right location, and not always is the same place.
I need this match to be in the correct location, so I can do
n = m.right()
if n.exists("Line of code"):
# breakpoint at correct location
else:
# breakpoint at wrong location
I'm trying:
myArrow = Pattern(
if exists(myArrow):
...
Whether I use onAppear() or exists, the X and Y of the found image is never correct. What is wrong?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Beth Griffin
- Solved:
- Last query:
- Last reply:
This question was reopened
- by Beth Griffin
To post a message you must log in.