Comment 2 for bug 1213439

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: "FindFailed" or "Location: outside any screen" error on dual-screen configuration

--- FindFailed for image on left monitor
It is still so, that you have to tell Sikuli, on which screen to look for images (version 1.1 will have more support for multi-screen-search).

click(<any_picture_on_left_screen>) per definition looks on Screen(0) (which is set as a pseudo-constant SCREEN, that is used for all undotted Region functions like click, find, type, ...)
So this FindFailed is a "feature" ;-)

if you want to work on screen 1 use e.g.
S1 = Screen(1)
S1.click(<any_picture_on_left_screen>)

... means all Region/Screen functions using images located on screen 1 need to be written as S1.function

(this is in fact the approach, to "restrict" a search operation to a specific region)

All functions using Regions or Locations as parameters need not be qualified, even if the region or location is on another monitor.

*** [error] Location: outside any screen ...
I am working on that