sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #17492
Re: [Question #226788]: onAppear
Question #226788 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/226788
Status: Answered => Open
Neja is still having a problem:
Sorry, i copied incorrectly. But this script doesn't check whether
1365687108852.png exists or not. Confirm is disabled or Confirm isn't
disabled is not shown in logs.
def
Check(self,event):
if
exists(Pattern("1365687108852.png").similar(0.96)):
print "Confirm is
disabled"
else:
print "Confirm isn't
disabled"
event.stopObserver()
def
ConfirmBets(self):
click("1366114550585.png")
m=find("QTTTQwww2nd1.png")
reg=Region(m.x, m.y, 200,
200)
with
reg:
onAppear(Pattern("9_NFFMEQlVTT-1.png").similar(0.92).targetOffset(1,20),
self.Check)
observe(15)
> Your question #226788 on Sikuli
changed:
>
https://answers.launchpad.net/sikuli/+question/226788
>
>
Status: Open => Answered
>
> RaiMan proposed the
following answer:
> what does this mean: It still doesn' t
work?
>
> Since I do not know your screenshot/images/app, I
guessed a possible approach, that you had to adopt to your
situation:
> m=find("QTTTQwww2nd1.png")
> reg=Region(m.x,
m.y, 200, 200)
> with reg:
>
> this looks
strange:
>
onAppear(message.png.exact().targetOffset(1,20), self.Check)
>
> should be something like:
>
onAppear(Pattern("message.png").similar(0.99).targetOffset(1,20),
self.Check)
>
> BTW: due to problems in the current version
it is recommended to use
> similar(0.99) instead of
exact()
>
> --
> If this answers your question,
please go to the following page to let us
> know that it is
solved:
>
https://answers.launchpad.net/sikuli/+question/226788/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to
the
> following page to enter your feedback:
>
https://answers.launchpad.net/sikuli/+question/226788
>
>
You received this question notification because you asked the
question.
>
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.