Detecting screen changes in a region
while True:
bigScreenReg = Region(
bigScreenRe
r = bigScreenReg
r.onChange(100, changed)
Settings.
r.observe(5) # observing for 5 seconds (script pauses here)
if Settings.isChanged: # check wether the handler was called (because there where changes)
else:
print "there haven't been any changes"
continue
It seems to be highlighting when there are changes in the region, but the popup never get's activated, the log just forever is filled with "there haven't been any changes" even though there were definitely changes in the region that I observed.
Basically I just want it to throw a popup when there are changes in the region.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- arminius
- Solved:
- Last query:
- Last reply: