a temporary solution, if you want to wait for changes in a region:
theRegion = the-region-to-observe img = capture(theRegion) for i in range(10): if not theRegion.exists(img,0): break wait(1)
a temporary solution, if you want to wait for changes in a region:
theRegion = the-region- to-observe exists( img,0): break
img = capture(theRegion)
for i in range(10):
if not theRegion.
wait(1)