|
马上加入TC
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我想判断找图找正确后直接跳过去,平时没找到图按原来顺序过这样的,下面是我的源码,是关于一个游戏找人的
KeyPress "Tab", 1
Delay 200
MoveTo 796, 326
Delay 200
LeftDown 1
Delay 200
MoveTo 795, 439
Delay 200
LeftUp 1
Delay 200
MoveTo 716, 292
Delay 200
LeftDoubleClick 1
Delay 1000
i=0
While i=0
FindPic 0,0,1024,768,"Attachment:\回帮派.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
i=1
MoveTo 456, 497
Delay 200
LeftClick 1
End If
Delay 500
Wend
Delay 2000
KeyPress "Tab", 1
Delay 2000
MoveTo 715, 312
Delay 200
LeftDoubleClick 1
Delay 5000
MoveTo 438, 418
Delay 200
LeftClick 1
Delay 1000
RightClick 1
Delay 200
i=0
If i=0 Then
FindPic 0,0,1024,768,"Attachment:\钟馗.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
i=1
MoveTo 346, 253
Delay 200
LeftClick 1
Call k()
End If
Delay 500
End If
MoveTo 366, 252
Delay 200
LeftClick 1
Sub k()
Delay 200
i=0
While i=0
FindPic 0,0,1024,768,"Attachment:\fdsdf.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
i=1
MoveTo intX+20, intY+20
Delay 1000
LeftClick 1
Delay 1000
RightClick 1
End If
Delay 1000
Wend
KeyPress "M", 1
Delay 200
MoveTo 592, 389
Delay 200
LeftClick 1
Delay 1000
RightClick 1
i=0
While i=0
FindPic 0,0,1024,768,"Attachment:\长安.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
i=1
End If
Delay 500
Wend
End Sub
|
|