X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left

Bug #711129 reported by RaiMan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

Bug Description

based on the related question (thanks topagae (https://launchpad.net/~topagae)), confirmed on Mac.

To confirm, I set the ROI to the app window.
The m.highlight only shows the expected match region, when the Safaris window top left is at the screens top left. In all other cases it is offset with the offset of the window relative to the screen.

--- Java snippet
Screen scr = new Screen();
App aS = new App("Safari");
ImageLocator.addImagePath("/Users/rhocke/Desktop");
aS.focus();
scr.setRect(aS.window());
aS.window().highlight(2);
Match m = scr.exists("wiki.png", 0);
m.highlight(2);

Tags: fkt-region
Revision history for this message
someotherperson432423423 (someotherperson432423423-deactivatedaccount) wrote :

Thanks Raiman!

Revision history for this message
someotherperson432423423 (someotherperson432423423-deactivatedaccount) wrote :

Hey guys, been using an old Sikuli for 7-8 months due to this bug. Did it ever get fixed?

Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :

This should be easy to fixed. Target it to RC3.

Changed in sikuli:
status: New → Triaged
importance: Undecided → Medium
milestone: none → x1.0-rc3
Changed in sikuli:
status: Triaged → Fix Committed
RaiMan (raimund-hocke)
Changed in sikuli:
assignee: nobody → RaiMan (raimund-hocke)
milestone: x1.0-rc3 → x1.0
tags: added: fkt-region
Changed in sikuli:
importance: Medium → Critical
importance: Critical → Low
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Low → High
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.