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.
-- Alanda birden fazla metin ara / Find multiple texts
-- Parametreler: metin listesi, alan koordinatlari
local metinler = {"Baslat", "Durdur", "Ayarlar"}
Snap.screenRefresh()
local region = Region()
local sonuclar = region:findMultiText(metinler)
if sonuclar then
local i = 1
while i <= size(sonuclar) do
local s = sonuclar[i]
if s then
toast("Bulundu: " .. metinler[i] .. " -> " .. s:getX() .. "," .. s:getY())
else
toast("Bulunamadi: " .. metinler[i])
end
i = i + 1
end
else
toast("Hiçbir metin bulunamadı")
end