用按键精灵无限点击图一,当出现图2时停止点击图1。点击完图2以后会出...
发布网友
发布时间:2024-09-29 11:48
我来回答
共1个回答
热心网友
时间:2024-09-29 13:35
AX = Plugin.Sys.GetScRX()
AY = Plugin.Sys.GetScRY()
Do
FindPic 0,0,AX,AY,"Attachment:\图1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
TracePrint "找到图1"
Do
MoveTo intX, intY
LeftClick 1
Delay 100
FindPic 0,0,AX,AY,"Attachment:\图2.bmp",0.9,intX2,intY2
If intX2 > 0 And intY2 > 0 Then
TracePrint "找到图2"
MoveTo intX2, intY2
LeftClick 1
Delay 500
Do
FindPic 0,0,AX,AY,"Attachment:\图3.bmp",0.9,intX3,intY3
If intX3 > 0 And intY3 > 0 Then
TracePrint "找到图3"
MoveTo intX3, intY3
LeftClick 1
Exit Do
End If
Loop
Exit Do
End If
Loop
Exit Do
//需要无限循环就把这条Exit Do删除掉,只删这一条
End If
Loop
TracePrint "完成循环"