函数:event.press 长按(仅支持安卓 7 及其以上系统)

函数名称:长按

函数功能:在一点进行长按

函数方法

event.press(x,y,time)

参数 类型 必填 说明
x number 横坐屏幕标
y number 屏幕纵坐标
tim number 长按时间,单位:毫秒,不写默认为 1000 毫秒

函数用例

 --在点(100,100)长按 3 秒
--仅支持安卓 7 及其以上系统
event.press(100,100,3000)

注意事项

  • 仅支持安卓 7 及其以上系统

  • 1 秒 = 1000 毫秒

  • 目前除控件、模拟按键函数积木编程和触动精灵通用外请勿将其他函数用于触动精灵,同理请勿将触动精灵函数在积木编程运行,请仔细查看本手册。

Copyright 北京帮你玩科技有限公司 2022 all right reserved,powered by Gitbook该文章修订时间: 2023-08-09 17:19:31

results matching ""

    No results matching ""