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.
-- HUD overlay
-- Hud(x, y, w, h, clickable)
local hud = Hud(10, 10, 300, 60, false)
hud:setText("Macro running...")
hud:setTextColor("#FFFFFF")
hud:setBackgroundColor("#CC000000")
hud:setTextSize(16)
hud:setRound(12)
hud:setPadding(10)
hud:show()
-- Use it as a counter
for step = 1, 10 do
hud:setText("Step: " .. step .. " / 10")
wait(1000)
end
hud:setText("Done!")
wait(2000)
hud:dispose()