← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #287964]: Help with SIMPLE moving pixels to the right of an image

 

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

    Status: Answered => Open

rbranch7 is still having a problem:
I beleive that I am getting an error because sortedlist[] has a list of Match objects. What would I do to offset the click of a Match object 150pixels?
sortedMatches is defined by this
sortedMatches = sorted(findAll(Pattern("1457227433201.png").exact()), key=by_nearest)

where the key is the distance measure from the mouse

your suggestion:
click(sortedMatches[-1].targetOffset(150,0))

[error] TypeError ( 'org.sikuli.script.Location' object is not callable
)

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