|
Post by oscasmca on Feb 18, 2021 17:59:27 GMT
Hello there, I just found this app yesterday, I dont really use scritps for games, but for similar things, well I really cant even start, , can some one hellp me to create a Label where I can go back after I count 5 times in a cycle. For example: -- ========== Settings ================ Settings:setCompareDimension(true, 1384) Settings:setScriptDimension(true, 720) ::Start A:: Local Count = 0 click(Location(268,664)) sleep(5) ::Start B:: click(Location(361,1442)) sleep(5) Count = Count + 1 if Count = 5 goto Start A else goto Start B endif goto Start Something like this is what I need for now, to start my program and go forward, thanks guys.
|
|
|
Post by Mercobots on Feb 18, 2021 23:29:58 GMT
just simple as that
Settings:setCompareDimension(true, 1384) Settings:setScriptDimension(true, 720)
local count
-- main loop - non stop while true do count = 0 click(Location(268,664)) sleep(5)
-- counter loop while count < 5 do
click(Location(361,1442)) sleep(5) count = count + 1
end
end
|
|