← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #195342]: Optimal way to scan constantly in main loop

 

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

j posted a new comment:
why don't you use an observer instead of an ugly while True ? ^^

Settings.ObserveScanRate = 0.2

def handler():
    print "I see you"
    wait(5)

onAppear("nextepisode.png",handler)
observe()

I think this is much better than "while True" ?

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