sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15905
[Bug 1115597] Re: Sikuli sees a half black screen on the second monitor
Hey RaiMan,
Actually I didn't, but the test I was writing needs to change the
resolution and orientation periodically.. so are you saying that I need
to reload Sikuli whenever there is some screen changes?
BTW, I'm not using the IDE and I'm using the jar file.
So the basic idea is
In a python module I have change_res function to
change the resolution for all monitors
Then
from sikuli import Sikuli
numdisplay = Sikuli.getNumScreens()
for display in range(numdisplay):
sc = Sikuli.Screen(display)
getCenter()
#check some image
Sikuli.capture(sc)
When it jumps to the second monitor, the picture Sikuli captured is half black..
I also test this: it will work if I relaunch Sikuli from command prompt after the resolution changes.
So this meaning we need to dynamically import Sikuli or I need to re-
create the instance of the class that uses Sikuli (This is not a
reasonable solution for my current setup)
Thanks!
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1115597
Title:
Sikuli sees a half black screen on the second monitor
Status in Sikuli:
New
Bug description:
Sikuli version: Sikuli 1.0rc3-r950 for windows 32bit
OS: Windows 7 64bit
I'm using Sikuli for a multiple monitors test.
First, I created a screen object for each monitor and then store them in a list
Then I loop through the list, for each object, I need to detect some image and also I need to detect if there is a black spot on any of the monitors. However, if I do a screen rotation on any of the monitor (primary or secondary), then take a screen shot, I found half of the second monitor was covered by black region.
I tested this using Sikuli directly by running jython, and it
certainly works. But when I'm using Pyro to remotely load Sikuli
libraries (because I'm using python here), the black screen appears on
the second monitor and fails my test :(
I'm not sure if I state it clearly enough..
Using jython to test the python module itself(import Sikuli in the
python module), it works!
Using Pyro to remotely load Sikuli libraries with a screen rotation
doesn't work, but it works without rotation.
Can anyone help me with this please?
Thanks!
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1115597/+subscriptions
References