[request] Sikuli should detect images on second monitor --- added in 1.1.0-Beta2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
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.
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
Changed in sikuli: | |
importance: | Medium → High |
status: | In Progress → Fix Committed |
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 |
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>)