|
Post by Mercobots on Jan 24, 2018 12:49:13 GMT
Hi i was wondering if is possible to change the target values on MATCH obj , something like
m = exists(img) m:setTarget(L)
yes i could use m = exists(Pattern(img):targetOffset(x,y))
but the final goal is to use findAll operation and set the a new/different target on each find match
i could use this too but is NOT what i need
match = findAll(img)
for i, m in ipairs(match) do t = m:getTarget() x = t:getX() + 'random x' y = t:getY() + 'random y' click(L(x, y)) end
|
|