← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #139814]: How to get the Y, X, H, W of a Match object

 

Question #139814 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/139814

    Status: Open => Answered

RaiMan proposed the following answer:
these methods are still there - but they (still ;-) need the function
brackets: getX()

But as a convenience, you might use direct attribute access too:
m = find(somw-image)
x = m.x # or m.getX()
y = m.y # or m.getY()
w = m.width # or m.getW()
h = m.height # or m.getH()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.