sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01007
[Bug 711129] [NEW] X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
Public bug reported:
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);
** Affects: sikuli
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/711129
Title:
X 1.0rc1: [Java] using setROI() a match's region is reported relative
to ROI top left, not screen's top left
Status in Sikuli:
New
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);
Follow ups
-
[Bug 711129] Re: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
From: RaiMan, 2013-08-14
-
[Bug 711129] Re: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
From: RaiMan, 2013-05-14
-
[Bug 711129] Re: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
From: RaiMan, 2013-02-21
-
[Bug 711129] Re: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
From: RaiMan, 2013-02-21
-
[Bug 711129] Re: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
From: Tsung-Hsiang Chang, 2011-09-03
-
[Bug 711129] Re: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
From: Tsung-Hsiang Chang, 2011-08-04
-
[Bug 711129] Re: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
From: Topagae@xxxxxxxxx, 2011-08-04
-
[Bug 711129] Re: X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
From: Topagae@xxxxxxxxx, 2011-02-01
-
[Bug 711129] [NEW] X 1.0rc1: [Java] using setROI() a match's region is reported relative to ROI top left, not screen's top left
From: RaiMan, 2011-02-01
References