← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #183598]: I need to check the presence of GUID value that changes after every 10 seconds, can we do that ?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
give the observation feature a try ( http://sikuli.org/docx/region.html
#observing-visual-events-in-a-region ).

general example quick&dirty ;-)

def handler(event):
    global isChanged
    event.region.stopObserver()
    isChanged = True

isChanged = False
reg = <the region of GUI, that should change>
reg.onChange(handler)
reg.observe(10)
assert isChanged

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