sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33144
[Bug 1434588] Re: [1.1.0] screen coordinates change after snapshot
** Changed in: sikuli
Importance: High => Critical
** Summary changed:
- [1.1.0] screen coordinates change after snapshot
+ [1.1.0] screen coordinates change after snapshot --- fixed 2015-06-24
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1434588
Title:
[1.1.0] screen coordinates change after snapshot --- fixed 2015-06-24
Status in Sikuli:
Fix Committed
Bug description:
Sikuli version: 1.1.0 nightly build
OS: Win 7 64-bit
Setup:
My hardware setup is a laptop with 3 external monitors. (Laptop is closed so laptop monitor itself is not in use.)
Sikuli reports screens as follows:
Number of screens is 3
java.awt.Rectangle[x=0,y=0,width=1920,height=1080]
java.awt.Rectangle[x=1920,y=0,width=1680,height=1050]
java.awt.Rectangle[x=-1600,y=0,width=1600,height=900]
which is correct. And I can reliably run sikuli scripts.
Problem:
I found that if I take a screenshot, then following this the screen(0)
coordinates are now offset. Resulting execution of sikuli scripts will
fail because of this. In other words sikuli will now report:
Number of screens is 3
java.awt.Rectangle[x=1602,y=2,width=1916,height=1076] <--- note change in x,y on screen(0)
java.awt.Rectangle[x=1920,y=0,width=1680,height=1050]
java.awt.Rectangle[x=-1600,y=0,width=1600,height=900]
The problem usually manifests as an error message like:
[log] CLICK on L(1624,187)@S(0)[1602,2 1916x1076]
[error] Location: outside any screen (1381, 523) - subsequent actions might not work as expected
To reproduce:
run the attached project and note correct coordinates.
Take a screenshot and paste into junk() method
run the project again and it will fail with wrong coordinates.
Also see SikulixDebug.txt file included in the project.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1434588/+subscriptions
References