← Back to team overview

sikuli-driver team mailing list archive

[Bug 1591132] [NEW] [1.1.0] with Region not working properly

 

Public bug reported:

I'm wondering why this code does not work:


CenterScreen = Region(423,178,1165,377)   

def findInRegion():
    with CenterScreen:    
        if exists(barras[1]) or exists(barras[1]) :            
            return getLastMatch()    
    return False

Instead of using the specified region it uses the implicit SCREEN region.
In my experience the with clause has never worked fine.

Regards

** Affects: sikuli
     Importance: Medium
     Assignee: RaiMan (raimund-hocke)
         Status: Opinion

** Changed in: sikuli
       Status: New => Opinion

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.1

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1591132

Title:
  [1.1.0] with Region not working properly

Status in Sikuli:
  Opinion

Bug description:
  I'm wondering why this code does not work:

  
  CenterScreen = Region(423,178,1165,377)   

  def findInRegion():
      with CenterScreen:    
          if exists(barras[1]) or exists(barras[1]) :            
              return getLastMatch()    
      return False

  Instead of using the specified region it uses the implicit SCREEN region.
  In my experience the with clause has never worked fine.

  Regards

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1591132/+subscriptions


Follow ups