|
ronle 發表於 Feb 19, 2019 15:21:55 GMT
nine = Pattern("1.png") match = find(nine)
click(match)
这个能找到图,但是当前需求是想在某个区域找到这个图,返回为true就没有示例了
-- ========== Settings ================
Settings:setCompareDimension(true, 1080)
Settings:setScriptDimension(true, 1080)
-- ========== main program ===========
reg = Region(676, 1147, 150, 150)
test = regionFindAll(reg, "1.png")
if (test) then
swipe(Location(604, 1499), Location(632, 846));
end
这是照着教程写的,但是好像不是我想要的,想请教一下
|
|
|
AnkuLua 發表於 Feb 21, 2019 0:03:29 GMT
if (reg:exists("1.png")) then swipe(Location(604, 1499), Location(632, 846)) end
|
|
|
ronle 發表於 Feb 21, 2019 1:15:16 GMT
if (reg:exists("1.png")) then swipe(Location(604, 1499), Location(632, 846)) end thank u
|
|