sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28975
Re: [Question #255984]: HowTo Region.observe: onAppear handler ?
Question #255984 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255984
den posted a new comment:
je voudrais apprendre a utiliser les events du style OnAppear ainsi que
les autres et gerer les parametrers dedans , pensant que le temps de
reponse de ce genre de chose permet d ' etre plus rapide que le " exists
" .
mais je n' arrive pas a faire fonctionner ca :
def myHandler () :
if QueteValideeReg.exists("1413219985088.png"):
wait(1)
QueteValideeReg.click("1413219985088.png")
if exists(Pattern("1413716368262.png").similar(0.92)):
click(Pattern("1413716368262.png").similar(0.92))
if PrincipaleReg.exists("1413716480430.png"): # instance
PrincipaleReg.click("1413716513801.png")
nb_quetes_tours_faites += 1
print(nb_quetes_tours_faites)
continue
nb_quetes_tours_faites = 0
while nb_quetes_tours_faites != 200 :
QueteValideeReg.onAppear("1413219985088-2.png", myHandler)
observe(FOREVER, background = True)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.