|
Post by lerkista on Dec 6, 2017 21:59:37 GMT
Hi
There is a function like existClick but when they find it click in another part of the screen based in a offset?
For example existsClick("image.png", 100,0) if the image is found, do a click 100 pixels to the right of the center of the image
Thanks
|
|
|
Post by Mercobots on Dec 7, 2017 0:14:01 GMT
Hi There is a function like existClick but when they find it click in another part of the screen based in a offset? For example existsClick("image.png", 100,0) if the image is found, do a click 100 pixels to the right of the center of the image Thanks try this if exists(Pattern("img.png"):targetOffset(100, 0)) then local t = getLastMatch():getTarget() local x = t:getX() local y = t:getY() Region(x,y,10,10):highlight("Target Offset") end
wait(2)
|
|