sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #54182
[Question #688897]: Why Handler is not working in region.onAppear.?
New question #688897 on Sikuli:
https://answers.launchpad.net/sikuli/+question/688897
Hello.
When I run my code, nothing happens, no erros, but also no results.
I already checked "comparing" values of image, and image is aways being detected, but handler does not run.
What I'm doing wrong?
CODE:
def Quests(event = None):
if not event:
r.stopObserver()
doubleClick("1581564293714.png")
while exists(Pattern("1581657244124.png").similar(0.85)):
click(Pattern("1581657244124-1.png").similar(0.84))
sleep(0.5)
if exists("1582077186091.png"):
click ("1582077186091.png")
sleep(0.5)
click("1582077240628.png")
else:
if exists("1582257077497.png"):
sleep(0.5)
click(Pattern("1582257077497.png").similar(0.62))
sleep(0.5)
else:
click("1582257086061.png")
sleep(1)
while exists(Pattern("1581657244124.png").similar(0.83)):
click(Pattern("1581657244124-1.png").similar(0.84))
sleep(0.5)
while (1):
r.onAppear("1581564293714.png", Quests)
r.observeInBackground(); wait(10)
r.stopObserver()
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.