|
Post by sonatta on Apr 3, 2018 11:21:13 GMT
hi im kinda new in this programming language i hope you can help me im trying to automate a mobile android game i want to click the violet image when it found and screen else if no violet found. click specified x,y coordinates of teleport skill ---- Main Program:
if(exist("violet.png")) then
click("violet.png)
else
click(Location(987, 202)) -- this is the coordinates of teleport skill
end
then repeat it by loop but it doesnt seem to run can you guys suggest what the best thing to do thank you
|
|
|
Post by Mercobots on Apr 3, 2018 12:45:59 GMT
Hi there , you only need this if not existsClick("violet.png") then click(Location(987, 202)) -- this is the coordinates of teleport skill end
|
|
|
Post by sonatta on Apr 3, 2018 14:02:57 GMT
---- Main Program:
if(exist("violet.png")) then
click("violet.png)
else
if not existClick("violet.png") then click(Location(987, 202)) -- this is the coordinates of teleport skill end end
is this correct? its giving me error when i run it any ideas?
|
|
|
Post by Mercobots on Apr 3, 2018 14:57:04 GMT
|
|