|
Post by zenkrye on Feb 15, 2022 15:08:00 GMT
I am attempting to use the regionWaitMulti function but I am running into an issue with an offset. I get an error that the click is unsupported with the code below:
local id, tar, m = regionWaitMulti(start, 1, 1, nil)
if (id == -1) then
wait(1)
elseif (id ~= nil) then
click(m:targetOffset(0,-90))
end
|
|
|
Post by AnkuLua on Feb 16, 2022 9:01:59 GMT
First, it's better to put offset in the list, start here start = {{target = Pattern("target.png"):targetOffset(0, -90), region = Region(0, 10, 20, 30), id = "target"}} then click the result directly click(m)
You should use the above solution.
And if you want to click the match offset, you use offset, not targetOffset. click(m:offset(0, -90))
|
|