sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32715
[Question #267709]: not working properly similar
New question #267709 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267709
Please help me.
Here is my code:
def open_shop(self):
API.log('open_shop')
# check if its already opened
API.log(str(Pattern(Interface.Action['shop_slide']).similar(0.9)))
shop_slide_match = self.GR.exists(Pattern(Interface.Action['shop_slide']).similar(0.9), 5)
if shop_slide_match:
API.log('-------------' + str(shop_slide_match))
self.click(shop_slide_match.offset(Location(-25, 0)))
here is my log:
P(Game/Action/shop_slide.png) S: 0.9
-------------M[1650,464 85x32]@S(S(0)[0,0 1920x1080]) S:0,71 C:1692,480 [21/21 msec]
how can this be? I say look for an image with similar (0.9) and I found it with (0.71)
it happens when I call the method again
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.