按键精灵,找到图执行第一个命令,找不到图执行第二个命令
已经修改好了,答题就这么个意思,有疑问在问我,加企鹅问我就行,我ID就是
Do
Rem a
indPic 0,0,1024,768,"Attachment:\开始.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 500
MoveTo intX, intY
LeftClick 1
Else
Goto a
End If
MoveTo 937, 178
Delay 300
LeftDown 1
Rem b
FindPic 0,0,1024,768,"Attachment:\抽奖.bmp",0.9,intX1,intY1
If intX1 > 0 And intY1 > 0 Then
MoveTo intX1, intY1
Delay 500
LeftClick 1
Else
Goto b
End If
Rem c
FindPic 0,0,1024,768,"Attachment:\确定.bmp",0.9,intX2,intY2
If intX2 > 0 And intY2 > 0 Then
MoveTo intX2, intY2
Delay 2000
LeftClick 1
Else
goto c
End If
Loop
按键精灵一个脚本放两个区域找图命令能完成第一个,到第二个的时候就找不到图了
Rem a
FindPic 0,0,1920,1080,"C:\Users\Corp.Corpsky\Pictures\2飞机选项图.bmp",0.9,intX2,intY2
FindPic 0,0,1920,1080,"C:\Users\Corp.Corpsky\Pictures\1.bmp",0.9,intX1,intY1
If intX1 > 0 And intY1 > 0 Then
MoveTo intX1, intY1
Delay 1000
LeftClick 1
Delay 5000
Rem b
If intX2 > 0 And intY2 > 0 Then
MoveTo intX2, intY2
Delay 1000
LeftClick 1
Else
Delay 5000
Goto a
End If
Else
Delay 5000
Goto b
End If
Delay 1000
MoveTo 938, 584
Delay 1000
LeftClick 1
Delay 5000
不知道对不对,自己看看修改。

