sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28963
Re: [Question #255984]: HowTo Region.observe: onAppear handler ?
Question #255984 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255984
RaiMan requested more information:
As far as I understand:
- you want to use observe with onAppear, that should trigger a handler, when someImage appears in Region QueteValideeReg
- in the handler this should be done (optimized for use with version 1.1.0)
if QueteValideeReg.exists("1413219985088.png"):
wait(1)
QueteValideeReg.click() # clicks last match
if exists(Pattern("1413716368262.png").similar(0.92)):
click() # clicks last match
if PrincipaleReg.exists("1413716480430.png"): # instance
PrincipaleReg.click("1413716513801.png")
- all this should be run in a loop.
to make it more clear, just try to explain in steps with natural
language what you want to achieve.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.