← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680134]: How to act on multiple changes in a region

 

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

RaiMan proposed the following answer:
ok, the principle approach for one region:

region1 = someRegion
def roll1(event):
        click(someLocation)
        event.repeat(10) # onAppear needs to know, wether it should continue and with what delay

region1.onAppear("roll1.png", roll1)
region1.r.observeInBackground() # observes forever in background

... and now simply the same for each region

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