[request] Sikuli should detect images on second monitor --- added in 1.1.0-Beta2

Bug #1056174 reported by stnk on 2012-09-25
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sikuli
Critical
RaiMan

Bug Description

***** new feature:
Python: use the constant ALL as region, to search on all screens (equivalent to what you see in Preview)
Java: ScreenUnion sall = Screen.all(); //same behaviour as Screen objects

BE AWARE: depending on number and size of your monitors a search might be lengthy and you risk memory constraints.
So use with care and get back to small regions as early as possible.

-------------------------------------------------------------------------
I have two monitors: first has Sikuli IDE running, and second has full screen RDP session. If I capture an image from this session and type in IDE "wait(<this image>)", it doesn't work failing to find an image:
org.sikuli.script.FindFailed: FindFailed: can not find 1348576930232.png on the screen.

At the same time if I click image in the IDE and choose "matching preview" it successfully finds the region on screen.

More details: Sikuli X-1.0rc3 (r905)
My OS: Windows XP
OS of RDP target: Windows 2008 Server R2, 64 bit

RaiMan (raimund-hocke) wrote :

For a find operation you have to tell Sikuli, on which screen to search for the image.

"matching preview" does more, than you can do in your script, in that it shows and searches both monitors.

so:
scr1 = Screen(1) # somewhere at the beginning of script

....

sr1. wait(<this image>)

summary: - Sikuli doesn't detect images inside remote RDP session
+ Sikuli doesn't detect images on second monitor
Changed in sikuli:
status: New → Opinion

thank you raiman,
sikuli finds and clicks now on images as expected if I use your scriptcommand.

but I think it's not what new users are expecting as behavior.
and it makes sikuli more uncomfotable as I have to put scr1 in front of all commands.

RaiMan (raimund-hocke) wrote :

absolutely right ;-)

it is on the list, to switch the monitor on the fly, so that all following actions are directed to this monitor.

Changed in sikuli:
status: Opinion → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
summary: - Sikuli doesn't detect images on second monitor
+ [request] Sikuli should detect images on second monitor
RaiMan (raimund-hocke) on 2014-01-12
Changed in sikuli:
importance: Medium → High
status: In Progress → Fix Committed
RaiMan (raimund-hocke) on 2014-06-28
Changed in sikuli:
importance: High → Critical
summary: - [request] Sikuli should detect images on second monitor
+ [request] Sikuli should detect images on second monitor --- added in
+ 1.1.0-Beta2
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers