部落冲突自动采集资源源码

Dim _ResourcesColor(),DrawScreen()
'---------------------------资源颜色------------------------------
Dim _ResourcesPoint = Array(9,163,583,1102)'资源查找范围坐标
_ResourcesColor(0) = Array(“3CD3EF”,“3|0|37C3E7,4|-2|57E6EF,2|-5|55EAF1,4|-12|A9D3CE,-5|-10|7FBFB2,-5|6|7FBFB6,8|6|B6DAD7”)'金币
_ResourcesColor(1) = Array(“D84DE8”,"-2|-4|C04AC3,1|-6|C046CB,6|-3|E92EF0,8|-9|B8DCD1,8|6|B8DCD4,-4|6|80C0B6,-5|-11|7BBCB1")'圣水
_ResourcesColor(2) = Array(“513648”,“0|-4|301A25,2|-4|402838,6|-1|694C60,9|-8|B8DAD7,-4|-8|7CBCB0,-7|-1|73B8B0,-2|7|85C0B8”)'黑油
'------------------------划动坐标------------------------------------
DrawScreen(0) = Array(351, 629, 230, 629, 200)'往上划
DrawScreen(1) = Array(230, 629, 450, 629, 200)'往下划
DrawScreen(2) = Array(450, 629, 330, 629, 200)'划回原坐标
'----------------------------点击函数-----------------------------------
Function _FindResourcesColor(ResPoint,ResColor)'查找资源并点击
Dim ArrColor,intX, intY
SetScreenScale 720,1280
For i = 0 To UBOUND(ResColor)
ArrColor = ResColor(i)
Do
FindMultiColor ResPoint(0),ResPoint(1),ResPoint(2),ResPoint(3), ArrColor(0), ArrColor(1), 1, 0.9, intX, intY
If intX > -1 Then
Tap intX, intY
Delay 100
End If
Delay 20
Loop Until intX = -1
Next
ResetScreenScale
End Function
'----------------------------调用函数-----------------------------------
For Each n In DrawScreen
Swipe n(0), n(1), n(2), n(3), n(4)
Delay 500
_FindResourcesColor(_ResourcesPoint,_ResourcesColor)'查找资源并点击

  • 2
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值