按键精灵区域找图为什么测试时候可以找到并执行,但是去使用的时候找不到图呢?大神指导下

Delay 456
MoveTo 1489, 859
Delay 3263
LeftClick 1
MoveTo 975, 643
Delay 16139
LeftClick 1
MoveTo 975, 656
Delay 943
LeftClick 1
MoveTo 1116, 825
Delay 943
LeftClick 1
MoveTo 1617, 787
Delay 1485
LeftClick 1
Delay 1151
LeftClick 1
MoveTo 1485, 877
Delay 1426
LeftClick 1
MoveTo 1540, 768
Delay 2152
LeftClick 1
Delay 676
LeftClick 1
MoveTo 1320, 628
Delay 1831
LeftClick 1
MoveTo 962, 675
Delay 2186
LeftClick 1
MoveTo 1617, 790
Delay 1889
LeftClick 1
MoveTo 1576, 473
Delay 1697
LeftClick 1
MoveTo 1528, 428
Delay 3872
LeftClick 1
Delay 1200
LeftClick 1
MoveTo 1264, 859
Delay 3086
LeftClick 1
For i = 5 To 5
FindPic 0,0,1920,1080,"Attachment:\喷漆.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo 1804, 513
MoveTo 1857, 325
Delay 327
LeftDoubleClick 1
Delay 126
End If
Next
MoveTo 867, 853
Delay 4664
LeftClick 1
MoveTo 1619, 789
Delay 1624
LeftClick 1
MoveTo 1487, 883
Delay 1248
LeftClick 1
MoveTo 398, 846
Delay 1321
LeftClick 1
MoveTo 1043, 647
Delay 1488
LeftClick 1
MoveTo 1619, 791
Delay 2415
LeftClick 1
MoveTo 1046, 640
Delay 1177
LeftClick 1
MoveTo 853, 474
Delay 2248
LeftClick 1
MoveTo 806, 191
Delay 1434
LeftClick 1
MoveTo 979, 370
Delay 1466
LeftClick 1
Delay 824
KeyDown "D", 1
Delay 151
KeyUp "D", 1
MoveTo 936, 495
Delay 1218
LeftClick 1
Delay 522
KeyDown "S", 1
Delay 78
KeyUp "S", 1
MoveTo 1050, 128
Delay 962
LeftClick 1
MoveTo 1255, 916
Delay 1449
LeftClick 1
MoveTo 787, 254
Delay 819
LeftDown 1
Delay 896
LeftUp 1
MoveTo 1066, 449
Delay 663
LeftClick 1
MoveTo 838, 603

建议用找色,或者降低相似度
我采用的是找色1,而不是其它的数值,这样比较快,也比较容易找出
温馨提示:答案为网友推荐,仅供参考
相似回答