MatchResult:getMiddlePoint()
Returns the center of the matched region as a Point.
Signature
getMiddlePoint(): Point
Returns
Point - The center coordinates, ready to pass to a click or swipe method.
Example
local result = Screen:find("button.png")
if result then
Screen:click(result:getMiddlePoint())
end