← Back to team overview

sikuli-driver team mailing list archive

[Bug 1099646] Re: setROI persists between IDE runs and breaks with Region:

 

*** This bug is a duplicate of bug 890123 ***
    https://bugs.launchpad.net/bugs/890123

** Summary changed:

- setROI persists between IDE runs and breaks with Region: sections.
+ setROI persists between IDE runs and breaks with Region:

** This bug has been marked a duplicate of bug 890123
   X-1.0rc3: IDE: with: selects whole screen instead of specified region on rerun --- workaround

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

Title:
  setROI persists between IDE runs and breaks with Region:

Status in Sikuli:
  New

Bug description:
  I am using the latest linux release (r905), putting the following in
  the IDE:

  #setROI(0, 0, 1000, 1000)
  #setROI(SCREEN)

  print getX(),getY(),getH(),getW()

  with Region(100,100,200,300):
      print getX(),getY(),getH(),getW()


  prints the dimensions of Screen(0), followed by "100 100 300 200"

  If i uncomment:
   setROI(0, 0, 1000, 1000)

  then it prints "0 0 1000 1000" twice (the with Region(): has no
  effect).

  Additionally, commenting out the setROI() and re-running also prints
  "0 0 1000 1000" twice, and the only way I can find to reset the
  behavior is to close and reopen the IDE.

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


References