Ready-to-use Code ExampleHud

HUD Panel Display

Creates a floating info overlay on screen. Hud() sets position, size, and click capability. Ideal for showing macro status, keeping counters, or informing the user.

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 ekran yazisi / HUD overlay display
-- Parametreler: x, y, w, h, clickable

local hud = Hud(10, 10, 300, 60, false)
hud:setText("Makro Calisiyor...")
hud:setTextColor("#FFFFFF")
hud:setBackgroundColor("#CC000000")
hud:setTextSize(16)
hud:setRound(12)
hud:setPadding(10)
hud:show()

-- Sayaç olarak kullan
local sayac = 0
while sayac < 10 do
  sayac = sayac + 1
  hud:setText("Islem: " .. sayac .. " / 10")
  wait(1000)
end

hud:setText("Tamamlandi!")
wait(2000)
hud:dispose()

Implementation and Adaptation Notes

  • Before running, replace sample values such as image names, text, colors, coordinates, and file paths with your own macro values.
  • For examples that use Region or coordinates, retest the target area on different resolutions and DPI values.
  • Tune mScore, timeout, and scan rate in a test macro first, then move the verified values into the production macro.