- count
... defines how many images should be searched in one run
setting count = 0 would return as many matches as possible within the given wait time
- waittime
... a specific waittime for this pattern, that should be used with find() (overwritten when using wait())
usage:
p = Pattern("some-image.png").setCount(5).setWait(10)
matches = find(p) # returns a list of matches like findAll()
To make this even more flexible, the Pattern class should have more attributes:
- defaults: waiting- time
count = 1
waittime = standard-
- count
... defines how many images should be searched in one run
setting count = 0 would return as many matches as possible within the given wait time
- waittime
... a specific waittime for this pattern, that should be used with find() (overwritten when using wait())
usage: "some-image. png").setCount( 5).setWait( 10)
p = Pattern(
matches = find(p) # returns a list of matches like findAll()