按键精灵区域找色第一个点找到后执行操作,第二个命令死活不能运行,好像不存在一样,请大神帮帮忙?谢谢
'==========以下是按键精灵录制的内容==========FindColor915,600,1050,690,"93837F",intX1,intY1IfintX...
'==========以下是按键精灵录制的内容==========
FindColor 915,600,1050,690,"93837F",intX1,intY1
If intX1 > 0 And intY1 > 0 Then
MoveTo intX1, intY1
Delay 200
LeftClick 1
Delay 200
MoveTo 621, 671
Delay 500
LeftClick 1
Delay 200
MoveTo 813, 588
Delay 500
LeftClick 1
Delay 200
MoveTo 857, 338
Delay 500
LeftClick 1
Delay 200
MoveTo 810, 400
Delay 500
LeftClick 1
Delay 200
MoveTo 833, 590
Delay 500
LeftClick 1
Delay 200
End If
FindColor 622,285,676,346,"31C475",intX2,intY2
If intX1 > 0 And intY1 > 0 Then
MoveTo 901, 590
Delay 18500
LeftClick 1
Delay 200
MoveTo 1083,207
Delay 500
LeftClick 1
Delay 200
MoveTo 1072, 300
Delay 200
LeftClick 1
Delay 200
MoveTo 940, 680
Delay 2000
End If
'==========以上是按键精灵录制的内容==========
如果添加第三个命令,怎么添加,求各路大神解释详细一点,谢 展开
FindColor 915,600,1050,690,"93837F",intX1,intY1
If intX1 > 0 And intY1 > 0 Then
MoveTo intX1, intY1
Delay 200
LeftClick 1
Delay 200
MoveTo 621, 671
Delay 500
LeftClick 1
Delay 200
MoveTo 813, 588
Delay 500
LeftClick 1
Delay 200
MoveTo 857, 338
Delay 500
LeftClick 1
Delay 200
MoveTo 810, 400
Delay 500
LeftClick 1
Delay 200
MoveTo 833, 590
Delay 500
LeftClick 1
Delay 200
End If
FindColor 622,285,676,346,"31C475",intX2,intY2
If intX1 > 0 And intY1 > 0 Then
MoveTo 901, 590
Delay 18500
LeftClick 1
Delay 200
MoveTo 1083,207
Delay 500
LeftClick 1
Delay 200
MoveTo 1072, 300
Delay 200
LeftClick 1
Delay 200
MoveTo 940, 680
Delay 2000
End If
'==========以上是按键精灵录制的内容==========
如果添加第三个命令,怎么添加,求各路大神解释详细一点,谢 展开
1个回答
2017-05-09
展开全部
第三个命令如果是顺序操作的就按顺序加上即可,帮你修改了一处错误:
FindColor 915,600,1050,690,"93837F",intX1,intY1
If intX1 > 0 And intY1 > 0 Then
MoveTo intX1, intY1
Delay 200
LeftClick 1
Delay 200
MoveTo 621, 671
Delay 500
LeftClick 1
Delay 200
MoveTo 813, 588
Delay 500
LeftClick 1
Delay 200
MoveTo 857, 338
Delay 500
LeftClick 1
Delay 200
MoveTo 810, 400
Delay 500
LeftClick 1
Delay 200
MoveTo 833, 590
Delay 500
LeftClick 1
Delay 200
End If
FindColor 622,285,676,346,"31C475",intX2,intY2
If intX2 > 0 And intY2 > 0 Then//这里有错误,已修改
MoveTo 901, 590
Delay 18500
LeftClick 1
Delay 200
MoveTo 1083,207
Delay 500
LeftClick 1
Delay 200
MoveTo 1072, 300
Delay 200
LeftClick 1
Delay 200
MoveTo 940, 680
Delay 2000
End If
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |