← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #656216]: How to set observe() to run in background forever?

 

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

    Status: Open => Answered

masuo proposed the following answer:
My environment: (SikuliX1.1.1 / windows7 / Java 1.8.0)
Try this codes.
#----------------
R = selectRegion()
def axn(event):
    event.getRegion().highlight(3)  #<--changed

R.onAppear(img1,axn)
R.observeInBackground(FOREVER)  #<--changed
#----------------

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.