函数:findColorUntil 单点循环比色

函数名称:单点循环比色

函数功能:单点循环比色

TSLib 版本:仅 v1.2.8 及其以上版本支持

函数方法

bool = findColorUntil(x,y,color,bool,dim,ms,timeout)

参数 类型 必填 说明
x number 基准点横坐标
y number 基准点纵坐标
color number 基准点颜色值
bool boolean 是否匹配,不写默认为 true
dim number 找色精度,不写默认默认 90
ms number 找色频率,不写默认为 100 毫秒
timeout number 超时时间,不写默认为 60 秒
返回值 类型 说明
bool boolean true - 存在;false - 不存在

函数用例

require("TSLib")
bool =  findColorUntil(44,166,0xfce6a8,true,90,405,1) 
if bool then
    dialog("找到")
else
    dialog("未找到")
end

注意事项

  • 点击查看使用方法及下载函数库

  • 触动精灵已内置本函数库,无需下载

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

results matching ""

    No results matching ""