|
Post by newbiex on Oct 11, 2017 19:42:41 GMT
Below codes works if the image exists in the screen but if it is not then i get an error. So, I need to know how to check if the image exist before clicking.
Also, the For i code is redundant coz im expecting a single location or return value only - dont know how to do that as well. Sorry, just starting to code and struggling to understand the command
local RBattle = Region(360, 512, 85,85)
test = listToTable(RBattle:findAll("Battle.png"))
for i, m in ipairs(test) do click(m) end
|
|
|
Post by AnkuLua on Oct 11, 2017 23:05:36 GMT
Use findAllNoFindException() to avoid not find exception.
|
|