示例:封装点击函数

function click(x, y)
    touchDown(x, y)
    mSleep(30)
    touchMove(x, y) -- 安卓部分机型单点不生效的情况下可以加上此句
    touchUp(x, y)
end
click(100, 200) --点击坐标 100,200 位置

注意事项

  • 安卓设备点击、滑动函数无效可以换此函数再试下。

  • 此示例代码所用函数为触动精灵专用函数请勿用于积木编程。

Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""