- 按键认证导师
- 513852
- 3624
- 47
- 4633 朵
- 28052 个
- 6157 个
- 190000
- 2010-10-09
|
1#
t
T
发表于 2022-07-17 21:53
|
|只看楼主
通过多点找色来查找目标,实现智能化操作 Dim 剑x, 剑y 剑x = 169 剑y = 1075
Dim 盾牌x = 361, 盾牌y = 1086
Dim 血瓶x = 550, 血瓶y = 1078
Dim intX,intY FindMultiColor 428,568,719,799,"303339","-57|3|E3FDFD,-86|-2|303238,18|-34|9AC4ED,67|-23|FFFFFF,52|21|75D9FB,27|28|647485,43|-9|1C1C84",0,0.9,intX,intY If intX > -1 And intY > -1 Then TracePrint "找到了出发按钮", intX, intY Tap intX, intY End If
//TracePrint 剑x, 剑y Do Tap 剑x, 剑y Tap 盾牌x, 盾牌y Dim 对比结果 对比结果 = CmpColor(345, 930, "2525FF", 0.9) TracePrint 对比结果 If 对比结果 = -1 Then TracePrint "没有匹配的颜色" Tap 血瓶x, 血瓶y End If
Delay 500 Loop
-
-
7.png
(, 下载次数:0)
(2022/7/17 21:59:12 上传)
|