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.
-- Dosya okuma ve yazma / File read and write
-- Parametreler: dosya yolu, icerik
local dosyaYolu = "macro_log.txt"
-- Dosyaya yaz (ustune yazar)
File.write(dosyaYolu, "Makro basladi\n")
-- Dosyaya ekle
local i = 1
while i <= 5 do
local satir = "Adım " .. i .. " tamamlandı\n"
File.append(dosyaYolu, satir)
i = i + 1
end
-- Dosyayi oku
local icerik = File.read(dosyaYolu)
if icerik then
toast("Dosya icerigi:\n" .. icerik)
else
toast("Dosya okunamadi")
end
-- Dosya var mi kontrol et
if File.exists(dosyaYolu) then
toast("Log dosyasi mevcut")
end