安卓版按键精灵多点找色,找到以后不能却循环上面的一段命令,新手求解答或者改下 50
DimintX,intYDoTouchDown7,443Delay1000TouchMove7,386//XXFindColor6,423,140,447,"131313...
Dim intX, intY
Do
TouchDown 7,443
Delay 1000
TouchMove 7, 386
//XX
FindColor 6,423,140,447,"131313|777777|FFFFFF|F8FCFC|FFFFFF|838383",0,0.9,intX,intY
If intX>-1 And intY>-1 Then
TracePrint "找到XX", intX,intY
Tap intX, intY
Delay 1000
End If
//XX
FindColor 94,224,174,246,"44C8FA|03BCFA|35C4FA|24BBF4|7BDAFC|2B9DE0",0,0.9,intX,intY
If intX>-1 And intY>-1 Then
TracePrint "找到XX", intX,intY
Tap intX, intY
Delay 3000
End If
//XX
FindColor 183,409,222,437,"FC9C46|FBA252|FE800F|F5DDC8|FAA65B|FB9E4B",0,0.9,intX,intY
If intX>-1 And intY>-1 Then
TracePrint "找到XX", intX, intY
Tap intX, intY
Delay 1000
End If
//XX
FindColor 4,25,81,49,"FF7900|FF7900|FE9435|FF8313|FF871B|FF871B",0,0.9,intX,intY
If intX>-1 And intY>-1 Then
TracePrint "找到XX", intX, intY
Tap intX, intY
Delay 1000
End If
//又XX
FindColor 5,25,73,50,"FF871A|FF800E|FF8313|FF7A03|FDA251|FF7900",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
TracePrint "找到又XX", intX, intY
Tap intX, intY
Delay 1000
End If
一直循环上面的一段命令,找到下面的那个以后直接返回到其他地方了
//XX
FindMultiColor 58,400,238,436,"F4EFEF","25|-6|F4EFEF,58|7|B6B5B5,26|0|AAA9A9,3|-3|BFBFBF,135|6|F4EFEF,61|-1|B8B7B7,-1|10|C0BFBF,3|3|F4EFEF",0,0.9,intX,intY
If intX>-1 And intY>-1 Then
TracePrint "找到XX", intX, intY
Tap intX, intY
Delay 1000
End If
loop 展开
Do
TouchDown 7,443
Delay 1000
TouchMove 7, 386
//XX
FindColor 6,423,140,447,"131313|777777|FFFFFF|F8FCFC|FFFFFF|838383",0,0.9,intX,intY
If intX>-1 And intY>-1 Then
TracePrint "找到XX", intX,intY
Tap intX, intY
Delay 1000
End If
//XX
FindColor 94,224,174,246,"44C8FA|03BCFA|35C4FA|24BBF4|7BDAFC|2B9DE0",0,0.9,intX,intY
If intX>-1 And intY>-1 Then
TracePrint "找到XX", intX,intY
Tap intX, intY
Delay 3000
End If
//XX
FindColor 183,409,222,437,"FC9C46|FBA252|FE800F|F5DDC8|FAA65B|FB9E4B",0,0.9,intX,intY
If intX>-1 And intY>-1 Then
TracePrint "找到XX", intX, intY
Tap intX, intY
Delay 1000
End If
//XX
FindColor 4,25,81,49,"FF7900|FF7900|FE9435|FF8313|FF871B|FF871B",0,0.9,intX,intY
If intX>-1 And intY>-1 Then
TracePrint "找到XX", intX, intY
Tap intX, intY
Delay 1000
End If
//又XX
FindColor 5,25,73,50,"FF871A|FF800E|FF8313|FF7A03|FDA251|FF7900",0,0.9,intX,intY
If intX > -1 And intY > -1 Then
TracePrint "找到又XX", intX, intY
Tap intX, intY
Delay 1000
End If
一直循环上面的一段命令,找到下面的那个以后直接返回到其他地方了
//XX
FindMultiColor 58,400,238,436,"F4EFEF","25|-6|F4EFEF,58|7|B6B5B5,26|0|AAA9A9,3|-3|BFBFBF,135|6|F4EFEF,61|-1|B8B7B7,-1|10|C0BFBF,3|3|F4EFEF",0,0.9,intX,intY
If intX>-1 And intY>-1 Then
TracePrint "找到XX", intX, intY
Tap intX, intY
Delay 1000
End If
loop 展开
2015-04-25
展开全部
简单地说你的脚本逻辑是有问题的,例如,如果(if)······则(then)·······否则(else)·····这是一个完整的逻辑句子,你只写了找到后怎么办,而没有写没有找到怎么办,这个就是你的脚本的问题所在。
追问
方便给整理下吗
MacPaw
2024-09-20 广告
2024-09-20 广告
试试macOS Sequoia的终极清理优化软件,CleanMyMac X是一款能让用户省心的 Mac 优化工具。它能删除多达 29 种垃圾文件,从而让 macOS 保持优化和快速的运行。它是 Mac 用户装机必备的应用程序之一。通过 3 ...
点击进入详情页
本回答由MacPaw提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |