← Back to team overview

sikuli-driver team mailing list archive

[Bug 1491551] [NEW] Wrong screen coordinates for multimonitor configuration with different scale rate for them

 

Public bug reported:

Siculi 1.1.0
If I have different scale rates for monitors, I have a trouble.
I have two monitors from left to right:
3840x2160  (100%)
3840x2160  (150%) main
Attributes for screens look like:
@S(1)[-5760,0 5760x3240]
@S(0)[0,0 3840x2160]
You see that left monitor have wrong coordinates, wrong width and wrong hight.

More examples.
Three monitors from left to right:
1920×1080 (100%)
3840x2160  (150%)
3840x2160  (150%) main
We have attributes like:
@S(2)[-8640,0 2880x1620]
@S(1)[-5760,0 3840x2160]
@S(0)[0,0 3840x2160]

So only on rightmost monitor Sikuli work fine.

And of course I have an error at the begin like:
[error] RobotDesktop: checkMousePosition: should be L(-3840,1080)@S(1)[-5760,0 3840x2160]
but after move is L(-5760,1080)@S(1)[-5760,0 3840x2160]
Possible cause in case you did not touch the mouse while script was running:
 Mouse actions are blocked generally or by the frontmost application.
You might try to run the SikuliX stuff as admin.

** Affects: sikuli
     Importance: Undecided
         Status: New

** Description changed:

  Siculi 1.1.0
- If I have different scale rates on them, I have a trouble.
+ If I have different scale rates for monitors, I have a trouble.
  I have two monitors from left to right:
  3840x2160  (100%)
  3840x2160  (150%) main
  Attributes for screens look like:
  @S(1)[-5760,0 5760x3240]
  @S(0)[0,0 3840x2160]
  You see that left monitor have wrong coordinates and wrong hight.
  
  More examples.
  Three monitors from left to right:
  1920×1080 (100%)
  3840x2160  (150%)
  3840x2160  (150%) main
  We have attributes like:
  @S(2)[-8640,0 2880x1620]
  @S(1)[-5760,0 3840x2160]
  @S(0)[0,0 3840x2160]
  
  So only on rightmost monitor Sikuli work fine. And of course I have an error at the begin like:
  [error] RobotDesktop: checkMousePosition: should be L(-3840,1080)@S(1)[-5760,0 3840x2160]
  but after move is L(-5760,1080)@S(1)[-5760,0 3840x2160]
  Possible cause in case you did not touch the mouse while script was running:
-  Mouse actions are blocked generally or by the frontmost application.
+  Mouse actions are blocked generally or by the frontmost application.
  You might try to run the SikuliX stuff as admin.

** Description changed:

  Siculi 1.1.0
  If I have different scale rates for monitors, I have a trouble.
  I have two monitors from left to right:
  3840x2160  (100%)
  3840x2160  (150%) main
  Attributes for screens look like:
  @S(1)[-5760,0 5760x3240]
  @S(0)[0,0 3840x2160]
- You see that left monitor have wrong coordinates and wrong hight.
+ You see that left monitor have wrong coordinates, wrong width and wrong hight.
  
  More examples.
  Three monitors from left to right:
  1920×1080 (100%)
  3840x2160  (150%)
  3840x2160  (150%) main
  We have attributes like:
  @S(2)[-8640,0 2880x1620]
  @S(1)[-5760,0 3840x2160]
  @S(0)[0,0 3840x2160]
  
  So only on rightmost monitor Sikuli work fine. And of course I have an error at the begin like:
  [error] RobotDesktop: checkMousePosition: should be L(-3840,1080)@S(1)[-5760,0 3840x2160]
  but after move is L(-5760,1080)@S(1)[-5760,0 3840x2160]
  Possible cause in case you did not touch the mouse while script was running:
   Mouse actions are blocked generally or by the frontmost application.
  You might try to run the SikuliX stuff as admin.

** Description changed:

  Siculi 1.1.0
  If I have different scale rates for monitors, I have a trouble.
  I have two monitors from left to right:
  3840x2160  (100%)
  3840x2160  (150%) main
  Attributes for screens look like:
  @S(1)[-5760,0 5760x3240]
  @S(0)[0,0 3840x2160]
  You see that left monitor have wrong coordinates, wrong width and wrong hight.
  
  More examples.
  Three monitors from left to right:
  1920×1080 (100%)
  3840x2160  (150%)
  3840x2160  (150%) main
  We have attributes like:
  @S(2)[-8640,0 2880x1620]
  @S(1)[-5760,0 3840x2160]
  @S(0)[0,0 3840x2160]
  
- So only on rightmost monitor Sikuli work fine. And of course I have an error at the begin like:
+ So only on rightmost monitor Sikuli work fine.
+ 
+ And of course I have an error at the begin like:
  [error] RobotDesktop: checkMousePosition: should be L(-3840,1080)@S(1)[-5760,0 3840x2160]
  but after move is L(-5760,1080)@S(1)[-5760,0 3840x2160]
  Possible cause in case you did not touch the mouse while script was running:
   Mouse actions are blocked generally or by the frontmost application.
  You might try to run the SikuliX stuff as admin.

** Information type changed from Private Security to Public

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

Title:
  Wrong screen coordinates for multimonitor configuration with different
  scale rate for them

Status in Sikuli:
  New

Bug description:
  Siculi 1.1.0
  If I have different scale rates for monitors, I have a trouble.
  I have two monitors from left to right:
  3840x2160  (100%)
  3840x2160  (150%) main
  Attributes for screens look like:
  @S(1)[-5760,0 5760x3240]
  @S(0)[0,0 3840x2160]
  You see that left monitor have wrong coordinates, wrong width and wrong hight.

  More examples.
  Three monitors from left to right:
  1920×1080 (100%)
  3840x2160  (150%)
  3840x2160  (150%) main
  We have attributes like:
  @S(2)[-8640,0 2880x1620]
  @S(1)[-5760,0 3840x2160]
  @S(0)[0,0 3840x2160]

  So only on rightmost monitor Sikuli work fine.

  And of course I have an error at the begin like:
  [error] RobotDesktop: checkMousePosition: should be L(-3840,1080)@S(1)[-5760,0 3840x2160]
  but after move is L(-5760,1080)@S(1)[-5760,0 3840x2160]
  Possible cause in case you did not touch the mouse while script was running:
   Mouse actions are blocked generally or by the frontmost application.
  You might try to run the SikuliX stuff as admin.

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


Follow ups