← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #245250]: contiously checking for error message while running test

 

Question #245250 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/245250

    Status: Open => Answered

obiwan-92 proposed the following answer:
Hello,

Try this one :
r = Region(Screen(0).getBounds())
print "Region : ", r
def changed(event):
    print "Event : ", event
    for ch in event.changes:
        print "Changes : ", ch
        ch.highlight(3) # highlight all changes for 3 sec.
r.onChange(50, changed)
r.observe(10, background=False)

Regards.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.