|
Post by rajikhushi70 on Jun 14, 2017 11:25:28 GMT
i need help to define function
i want to call one function inside another?
any idea, help, tutorial will be appreciated
thanks in advance...
|
|
|
Post by oraerk on Jun 16, 2017 16:21:44 GMT
|
|
|
Post by oraerk on Jun 16, 2017 16:24:25 GMT
real ankulua example:
function clickRandomInRegion (r) local rx=math.random(r:getX(),r:getX()+r:getW()) local ry=math.random(r:getY(),r:getY()+r:getH()) local l=Location(rx,ry) click(l) end
reg = Region (720,480,100,50)
clickRandomInRegion(reg)
|
|
|
Post by Mercobots on Jun 17, 2017 12:18:03 GMT
i need help to define function i want to call one function inside another? any idea, help, tutorial will be appreciated thanks in advance... function foo() print("foo function") end
-- function bar() foo() end
bar()
|
|