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

Bug #1797985 reported by Gerassimos
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

Bug Description

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

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

or line 476
  @Override
  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)
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
Revision history for this message
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.

RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
milestone: 1.1.4 → 2.0.0
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.