sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43535
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.