[request] want Region methods to search on multiple screens with one method call
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>)
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://
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.
However, I am not sure what's the best way to use Wait() or Click() in the loop.
Please kindly help.
Thanks very much!
description: | updated |
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 1.1.0 |
Changed in sikuli: | |
milestone: | 1.1.0 → 1.2.0 |
Changed in sikuli: | |
milestone: | 2.0.0 → 2.1.0 |