You can use it woth math.random like this.(there is a million different ways to do it, here is just a simple one)
Turn it into this: click_spot = Location(math.random(100,105),math.random(200,205)
Then when we call click:
It will already do the random for you as you set it to 100-105 (adjust to your needs)
I tried this and it gave me errors. Anyone who is looking for alternative solution, refer to ankulua.boards.net/thread/1352/randomly-click An example will be: area = Region(61,172,939,437) click_spot = Location(area:getX() + math.random(0, area:getW()), area:getY()+math.random(0, area:getH())) click(click_spot) Not sure is this really random. if not, please someone let me know. Im still a newbie, just joined this forum and got myself PRO version last few days. please be gentle with me.
For AnkuLua 8.8.0 and above, it's easy. Just enable "Random click".
Yes, I know. But if I am right, "Random click" PRO feature applied to everything?, which is something I really don't want. In my case, there are few actions I do not want to be random. So, I have included [Mercobots] debug script tool to take control what to randomise and not.