|
Post by xxdark33xx on Mar 2, 2017 2:11:30 GMT
How do I make it look for multiple images, my script so far
local img = Pattern("img.png"):similar(0.95) local time = 5 -- in seconds
local screen_loc = Location(100,1700) local screen_loc2 = Location(600,900) local screen_loc3= Location(700,1230)
if (wait(img)) then
wait(time)
click(screen_loc)
click(screen_loc2)
click(screen_loc3)
end
|
|
|
Post by AnkuLua on Mar 2, 2017 2:47:45 GMT
Don't know your problem exactly.
Use exists() instead of wait() maybe.
if (exists("a.png)) then ... end if (exists("b.png")) then ... end
|
|