← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #695577]: Specify targetOffset(). to match object

 

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

    Status: Open => Answered

Manfred Hampl proposed the following answer:
You can specify the targetOffset when defining the match object.
obj = region.find(...).targetOffset(2,2)

And

Since a match object is a region, you could work with the location 
click(obj.getCenter().offset(2,2))

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.