|
------ 1 -----
-- 找到 1.png 時,點擊 realTarget.png
touchList[index] = {target = "1.png", region = Region(612, 493, 150, 150), id = "1", action = "click("realTarget.png")"}
index = index + 1
------ 2 -----
-- 找到 2.png 時,點擊找到的地方,並等兩秒
touchList[index] = {target = "2.png", region = Region(774, 493, 150, 150), id = "2", action = "click(matchResult); wait(2)"}
index = index + 1
------ 3 -----
-- 找到 3.png 時,執行 3.lua。請用絕對路徑
touchList[index] = {target = "3.png", region = Region(174, 293, 150, 150), id = "3", action = "dofile(scriptPath() .. "luar/3.lua")"}
index = index + 1
------ 3 -----
-- 全螢幕找 4.png,不限區域
touchList[index] = {target = "4.png", region = nil, id = "4", action = "click"}
index = index + 1