sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55748
Re: [Question #692595]: How to get location of image if exists
Question #692595 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692595
Status: Open => Answered
masuo proposed the following answer:
@julien abou fadel
https://sikulix-2014.readthedocs.io/en/latest/region.html#Region.exists
https://sikulix-2014.readthedocs.io/en/latest/match.html#Match
[example codes:]
m = exists("1598404408149.png",0)
print m
if m:
print m.getX()
print m.getY()
print m.getCenter()
mouseMove(m.getCenter())
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.