示例:方形渐开线

init(1)
mSleep(1000)
local x = 1010 --起始坐标 x
local y = 698  --起始坐标 y
local v = 30   --两点间距离
touchDown(x, y)
mSleep(100)
for var = 1,20 do
    j = 0
    k = v
    for _i = 1,2 do
        for i = 1,10 do
            x = x + j
            y = y + k
            touchMove(x, y)
            mSleep(20)
        end
        j = v
        k = 0
    end
    v = v * (-1.05)
end
touchUp(x, y)

注意事项

  • 安卓设备点击、滑动函数无效可以换此函数再试下。
Copyright 北京帮你玩科技有限公司 2021 all right reserved,powered by Gitbook该文章修订时间: 2021-06-29 14:37:27

results matching ""

    No results matching ""