Код
--lua
local path = [['C:\Pilot.bmp']] -- путь к картинке
local arr, count = findimage (0, 0, 1920, 1080, {path}, 2, 80, -1, 5)
hint ('Найдено картинок: ' .. tostring(count)) -- результат поиска, подсказка в правом нижнем углу
if arr then -- если найдена
math.randomseed(os.clock())
local rand = math.random(count)
move (arr[rand][1], arr[rand][2])
end