按键精灵我想运行脚本A多次后再执行脚本B一次 然后继续脚本B 请教一下 30 5
从这里开始,脚本ADoRem标记MoveTo908,963Delay1000LeftClick1Delay1000IfColor1325,740,"5D5264",0Th...
从这里开始, 脚本A
Do
Rem 标记
MoveTo 908, 963
Delay 1000
LeftClick 1
Delay 1000
IfColor 1325,740,"5D5264",0 Then
MoveTo 364, 368
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 404, 368
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 456, 370
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 322, 409
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 352, 414
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 402, 420
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 450, 421
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 321, 466
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 354, 468
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 398, 465
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 908, 963
Delay 1000
LeftClick 1
Delay 1000
//跳转语句,可以跳转到rem标记过的标记处继续执行
Else
MoveTo 908, 963
Delay 1000
LeftClick 1
End If
Delay 1000
loop
到这里,前面的脚本我想每循环下面的50次,就执行一次上面的,该怎么办鸭???
脚本B
For 50
FindColor 282,148,1700,900,"DAEFAF",intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX+19,intY+25
Delay 500
LeftDoubleClick 1
Delay 3000
FindColor 646,297,1300,1361,"DAEFAF",intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+19,intY+25
LeftDoubleClick 1
Delay 1000
End If
KeyPress "F1", 1
Delay 4000
MoveTo 960, 522
Delay 500
LeftDoubleClick 1
Delay 500
LeftDoubleClick 1
Delay 11500
LeftClick 1
Delay 500
LeftClick 1
Delay 500
LeftDoubleClick 1
Delay 5000
End If
If 0 > intX And 0 > intY Then
MoveTo 950, 400
Delay 1000
LeftClick 1
Delay 5000
End If
If 0 > intX And 0 > intY Then
MoveTo 1800, 200
Delay 1000
LeftClick 1
Delay 10000
End If
Next
Goto 标记 展开
Do
Rem 标记
MoveTo 908, 963
Delay 1000
LeftClick 1
Delay 1000
IfColor 1325,740,"5D5264",0 Then
MoveTo 364, 368
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 404, 368
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 456, 370
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 322, 409
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 352, 414
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 402, 420
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 450, 421
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 321, 466
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 354, 468
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 398, 465
Delay 1000
KeyDown "Ctrl", 1
Delay 1000
LeftClick 1
Delay 1000
KeyUp "Ctrl", 1
Delay 1000
MoveTo 908, 963
Delay 1000
LeftClick 1
Delay 1000
//跳转语句,可以跳转到rem标记过的标记处继续执行
Else
MoveTo 908, 963
Delay 1000
LeftClick 1
End If
Delay 1000
loop
到这里,前面的脚本我想每循环下面的50次,就执行一次上面的,该怎么办鸭???
脚本B
For 50
FindColor 282,148,1700,900,"DAEFAF",intX,intY
If intX > 0 And intY > 0 Then
Delay 1000
MoveTo intX+19,intY+25
Delay 500
LeftDoubleClick 1
Delay 3000
FindColor 646,297,1300,1361,"DAEFAF",intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX+19,intY+25
LeftDoubleClick 1
Delay 1000
End If
KeyPress "F1", 1
Delay 4000
MoveTo 960, 522
Delay 500
LeftDoubleClick 1
Delay 500
LeftDoubleClick 1
Delay 11500
LeftClick 1
Delay 500
LeftClick 1
Delay 500
LeftDoubleClick 1
Delay 5000
End If
If 0 > intX And 0 > intY Then
MoveTo 950, 400
Delay 1000
LeftClick 1
Delay 5000
End If
If 0 > intX And 0 > intY Then
MoveTo 1800, 200
Delay 1000
LeftClick 1
Delay 10000
End If
Next
Goto 标记 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询