sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #08540
Re: [Question #186603]: How to find coordinate of the image
Question #186603 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/186603
Status: Open => Answered
RaiMan proposed the following answer:
Uuups, even quicker! LOL again.
You seem to not have understood yet, how Sikuli works. so first go back to your other urgent question
https://answers.launchpad.net/sikuli/+question/186601
about the basics.
your question:
box1 = Location(15,267)
does not make any sense.
This might make sense
box1 = Region(15,267, 50, 300) # a rectangular area on screen
How to know:
you have to count pixels on the screen ;-) (see faq )
or use the capture/preview features in Sikuli IDE (or build your own using Sikuli)
If you have a captured image of box1, then
print find("image-of-box1.png")
will print out the attributes of the match that is returned by find()
and knows its area position and dimension.
But I am sure you will know all this within a short time evaluating docs
and examples.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.