按键精灵找多图,分别对应不同动作
千言万语,尽在FindPic1000,700,1024,768,"Attachment:\1.bmp",0.9,intX,intYIfintX>0AndintY>0The...
千言万语,尽在
FindPic 1000,700,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图1,鼠标一直点击(图1有几率出现,如果找不到跳过)
FindPic 400,0,500,70,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图2,鼠标一直点击(图2有几率出现,如果找不到跳过)
FindPic 800,50,1000,160,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图3,停止图1或者图2的动作,然后移动到图3点击
//(图3有几率出现,如果没有那么下面4.5都不会有了)
FindPic 600,50,800,160,"Attachment:\4.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图4,并且鼠标右键,出现选项,*鼠标移动到右键下X+5,Y+5左键点击。
//*就像在电脑桌面右键,然后移动到"刷新"点击,然后出现图5
FindPic 450,50,600,160,"Attachment:\5.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图5,小键盘数字6
FindPic 500,0,600,90,"Attachment:\6.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图6.停止脚本30秒,然后再重启脚本
//就是1,2图都有几率出现。 1或者2图出现要一直点击左键,可能会出现图3,如果没有就直接到图6了
//点击图3,会出现两种情况,YES或NO,YES就还有图4图5出现。NO还是会直接到图6.
//点击图3,如果不出现4,就会出现6,就停止脚本。 展开
FindPic 1000,700,1024,768,"Attachment:\1.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图1,鼠标一直点击(图1有几率出现,如果找不到跳过)
FindPic 400,0,500,70,"Attachment:\2.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图2,鼠标一直点击(图2有几率出现,如果找不到跳过)
FindPic 800,50,1000,160,"Attachment:\3.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图3,停止图1或者图2的动作,然后移动到图3点击
//(图3有几率出现,如果没有那么下面4.5都不会有了)
FindPic 600,50,800,160,"Attachment:\4.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图4,并且鼠标右键,出现选项,*鼠标移动到右键下X+5,Y+5左键点击。
//*就像在电脑桌面右键,然后移动到"刷新"点击,然后出现图5
FindPic 450,50,600,160,"Attachment:\5.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图5,小键盘数字6
FindPic 500,0,600,90,"Attachment:\6.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
//找到图6.停止脚本30秒,然后再重启脚本
//就是1,2图都有几率出现。 1或者2图出现要一直点击左键,可能会出现图3,如果没有就直接到图6了
//点击图3,会出现两种情况,YES或NO,YES就还有图4图5出现。NO还是会直接到图6.
//点击图3,如果不出现4,就会出现6,就停止脚本。 展开
1个回答
展开全部
挺麻烦的,我测试看看。
图1或图2是出现后一直存在还是只出现一瞬间然后消失?
算了,我直接做个通用的,懒得管。终于做完了,这玩意真麻烦,你试试看能用不?
Do
FindPic 1000, 700, 1024, 768, "Attachment:\1.bmp", 0.9, A1X, A1Y
FindPic 400, 0, 500, 70, "Attachment:\2.bmp", 0.9, A2X, A2Y
FindPic 800, 50, 1000, 160, "Attachment:\3.bmp", 0.9, A3X, A3Y
FindPic 500, 0, 600, 90, "Attachment:\6.bmp", 0.9, A6X, A6Y
If A1X > 0 And A1Y > 0 Then
do
LeftClick 1
FindPic 800, 50, 1000, 160, "Attachment:\3.bmp", 0.9, A3X, A3Y
FindPic 500, 0, 600, 90, "Attachment:\6.bmp", 0.9, A6X, A6Y
If A3X > 0 and A3Y > 0
Call 图3
Exit Do
ElseIf A6X > 0 and A6Y > 0 Then
Delay 30000
Exit Do
End If
Loop
ElseIf A2X > 0 and A2Y > 0
do
LeftClick 1
FindPic 800, 50, 1000, 160, "Attachment:\3.bmp", 0.9, A3X, A3Y
FindPic 500, 0, 600, 90, "Attachment:\6.bmp", 0.9, A6X, A6Y
If A3X > 0 and A3Y > 0
Call 图3
Exit Do
ElseIf A6X > 0 and A6Y > 0 Then
Delay 30000
Exit Do
End If
Loop
ElseIf A3X > 0 and A3Y > 0
Call 图3
ElseIf A6X > 0 and A6Y > 0 Then
Delay 30000
End If
A1X = 0
A2X = 0
A3X = 0
A4X = 0
A5X = 0
A6X = 0
Loop
Sub 图3()
MoveTo A3X, A3Y
LeftClick 1
FindPic 600, 50, 800, 160, "Attachment:\4.bmp", 0.9, A4X, A4Y
FindPic 450, 50, 600, 160, "Attachment:\5.bmp", 0.9, A5X, A5Y
FindPic 500, 0, 600, 90, "Attachment:\6.bmp", 0.9, A6X, A6Y
If A4X > 0 and A4Y > 0 Then
MoveTo A4X, A4Y
RightClick 1
MoveR 5, 5
LeftClick 1
End If
If A5X > 0 and A5Y > 0 Then
KeyPress "Num 6", 1
End If
If A6X > 0 and A6Y > 0 Then
Delay 30000
End If
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询