[1.1.0] screen.capture only Screen(0) in multi-monitor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
************ this works with version 1.1.0
scrs = []
dir = getBundlePath()
for n in range(getNumber
scrs.
for scr in scrs:
filename = "screen%d" % scr.getID()
scr.capture(
captures of the screens are saved to the bundle as screenN.png
-------
Sikuli version: 1.1.0-Beta2
I want to capture each screen separately every 2 seconds and wrote the following code to achieve it:
import os
import shutil
import datetime
screenshotsDir = r"C:\Users\
screens = [Screen(id) for id in range(Screen(
print screens # Prints [S(0)[0,0 1920x1080] E:Y, T:3.0, S(1)[-1920,0 1920x1080] E:Y, T:3.0]
print Screen(
while True:
for _dx, screen in enumerate(screens):
print screen.getBounds() # Prints java.awt.
img = screen.
time_now = datetime.
img_target = "{}.S{}
target = os.path.
time.sleep(2)
Unfortunately, when I go and check the screenshots, I see that Sikuli only grabbed S(0) for both monitors although the code print output gives all the right information!
summary: |
- [1.1.0 Beta] screen.capture only Screen(0) in multi-monitor + [1.1.0] screen.capture only Screen(0) in multi-monitor |
Changed in sikuli: | |
status: | In Progress → Fix Committed |
importance: | High → Critical |
description: | updated |
upgrade to the latest 1.1.0 pre-final and try again.