Copyable Example Code
You can paste this into the code editor; still verify target image, region, color, text, and timing values in your own device flow.
-- Belirli alanda renge tikla / Click color in region
-- Parametreler: hedef renk HEX, mScore (0.0-1.0)
local hedefRenk = "#FF4444"
local mScore = 0.85
local x, y, w, h = 100, 300, 900, 600
Snap.screenRefresh()
local region = Region(x, y, w, h)
local match = region:find(Asset.color(hedefRenk):mScore(mScore))
if match then
toast("Renk bulundu: " .. match:getX() .. ", " .. match:getY())
quickTap(match)
wait(300)
else
toast("Renk bulunamadi")
end