← Back to team overview

sikuli-driver team mailing list archive

[Bug 1591132] Re: [1.1.0] with Region not working properly

 

I think I fixed it now (hopefully finally ;-)

** Changed in: sikuli
       Status: Opinion => Fix Committed

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

** Summary changed:

- [1.1.0] with Region not working properly
+ [1.1.0] with Region not working properly --- fixed 1.1.1 2016-06-18+

-- 
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 --- fixed 1.1.1 2016-06-18+

Status in Sikuli:
  Fix Committed

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


References