I need to search for a color in a specific rectangular area of the screen, not just from an x,y point to another x,y point
I need to get from point x - up to point x - down
y point - up to
y-down point
Can someone help me?
--lua
local cl = findcolor ("x1, y1 x2, y2 ( color) %arr 2")
if cl > 0 then
move (arr[1][1], arr[1][2])
end
--lua
local cl = findcolor ("x1, y1 x2, y2 ( color) %arr 2")
if cl > 0 then
move (arr[1][1], arr[1][2])
end
--lua
local x1, y1, x2, y2 = 10, 10, 300, 200
local c1 = findcolor (string.format("%d, %d, %d, %d ", x1, y1, x2, y2) .. "(16777215) %arr")
if c1 > 0 then
move (arr[1][1], arr[1][2])
end