[1.1.4] Screen.newRegion() should return a Region object --- fixed 2018-10-17

Bug #1797985 reported by Gerassimos on 2018-10-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

As it seems only Screen.newRegion(Location,width,heith) works.
As it seems also from the code

at line 454
  public Region newRegion(Region reg) {
    return null;

or line 476
  public Region newRegion(int x, int y, int w, int h) {
    return null;

I presume that a line similar to 451 is needed.
Lines are from SikuliX1/API/src/main/java/org/sikuli/script/Screen.java

RaiMan (raimund-hocke) on 2018-10-16
summary: - newRegion does not work from Screen
+ [1.1.4] Screen.newRegion() should return a Region object --- fixed
+ 2018-10-17
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.4
RaiMan (raimund-hocke) wrote :

Thanks for the pointer.
You are right: if it is there, it should return something useable ;-)

Was not aware, that this is of any use for local screens (they are bound to a screen by the coordinates anyways). It is needed for non-local Screens (like VNCScreen, ADBScreen) to create Regions from coordinates and bind them to the the non-local screen objects.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers