← Back to team overview

sikuli-driver team mailing list archive

[Bug 816560] Re: X-1.0rc3: Region.left() / .right() doesn't work on secondary monitor

 

below() seems to be wrong too.

Only Match objects have this effect.

Calculated Regions work ok.

Workaround: cast matches to Regions:

r = Region(s.find(image))
r.highlight(2)

** Summary changed:

- X-1.0rc3: Region.left() / .right() doesn't work on secondary monitor
+ X-1.0rc3: Region.left/right/below doesn't work on secondary monitor --- workaround

** Description changed:

+ ***** workaround
+ 
+ only matches are affected. Region work.
+ 
+ cast matches to Regions:
+ 
+ s = Screen(1)
+ r = Region(s.find("asset.png"))
+ r.highlight()
+ 
+ ---------------------------------------------------
+ 
  App: Version X-1.0rc2 for Mac
  
  Requirements: multiple monitor, with secondary monitor on the left (so
  Region coordinates are negative)
  
  Use a script similar to this:
  
  s = Screen(1)
  r = s.find("asset.png")
  r.highlight()
  
  r.right(50).highlight() # is wrong
  
  #probably there is a bug in computing the edge of the screen when the
  coordinates are negative.
  
  Note: I haven't tried to move the secondary monitor on the right of
  primary to see if that still causes the issue.

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

Title:
  X-1.0rc3: Region.left/right/below doesn't work on secondary monitor
  --- workaround

Status in Sikuli:
  New

Bug description:
  ***** workaround

  only matches are affected. Region work.

  cast matches to Regions:

  s = Screen(1)
  r = Region(s.find("asset.png"))
  r.highlight()

  ---------------------------------------------------

  App: Version X-1.0rc2 for Mac

  Requirements: multiple monitor, with secondary monitor on the left (so
  Region coordinates are negative)

  Use a script similar to this:

  s = Screen(1)
  r = s.find("asset.png")
  r.highlight()

  r.right(50).highlight() # is wrong

  #probably there is a bug in computing the edge of the screen when the
  coordinates are negative.

  Note: I haven't tried to move the secondary monitor on the right of
  primary to see if that still causes the issue.

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


References