[request] want Region methods to search on multiple screens with one method call

Bug #1239108 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

**** how to implement ?

The feature definitely is on the list.

But I did not decide yet how to implement:
- it cannot be done generally for performance reasons (each search cycle on one monitor lasts between 0.5 and 1 sec, so simply searching sequentially is not acceptable)
- for an on-demand-solution: what is the best API integration

I see 3 options:
1. something like <with region:>, but common for all API versions (with is only for Jython) (something like onScreen(All) and all following searches will search all screens until onScreen() resets it to the default or onScreen(n) or onScreen(<some region match or location>) restricts it to a special monitor)
2. use a special Screen constructor: s = Screen(ALL) and then proceed normally with s.wait(), ...
3. make it a Pattern option: pat = Pattern(<some image>).onScreen(ALL), so a wait(pat) will know to search on all screens

option 2 will be available anyway and acceptable on the Java level, since you have to always qualify the method calls.

----------------------------------------------------------------------------

*** from the originating question

I've read this part: http://doc.sikuli.org/screen.html#multi-monitor-environments
So I know how to get the screens like Screen(0), Screen(1).
But how to use it with Wait() or Click()?
I searched the Anwsers on Launchpad but didn't find what I want.

Should I use something like the loop "for i in range(Screen.getNumberScreens())" ?
However, I am not sure what's the best way to use Wait() or Click() in the loop.
Please kindly help.
Thanks very much!

RaiMan (raimund-hocke)
description: updated
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.0 → 1.2.0
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 2.0.0 → 2.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.