下面是刷工厂的`1分钟兑换10次部件 50分钟等待一个部件(防止能量清0)
我用的是按键精灵所以想知道易语言能写出不!
下面是按键精灵代码不懂说!
While true
While i = 0
If i = 0 Then
t = now
Do
//要做的事情
//打开游戏
IfColor 812,500, "F4ECBD", 0 Then
Delay 100
MoveTo 1861, 21
Delay 100
LeftDoubleClick 1
Delay 1500
End If
//添加好友
FindPic 0,0,1920,1080,"Attachment:\tj.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 200
LeftDoubleClick 1
End If
//提示已登入
IfColor 1054,509, "2653E5", 0 Then
Delay 100
MoveTo 1054,509
Delay 100
LeftDoubleClick 1
Delay 500
End If
//大弹窗
IfColor 1219,476, "2653E5", 0 Then
Delay 100
MoveTo 1219,476
Delay 100
LeftDoubleClick 1
Delay 500
End If
//中断确定
IfColor 278,318,"58B379",0 Then
Delay 1000
KeyDown 18, 1
KeyPress 115, 1
KeyUp 18, 1
Delay 800
End If
//无认证
IfColor 1042,509, "2653E5", 0 Then
Delay 100
MoveTo 1042,509
Delay 100
LeftDoubleClick 1
Delay 1500
End If
//异常处理1
IfColor 1161,509, "2C57E5", 0 Then
Delay 100
MoveTo 1161,509
Delay 100
LeftDoubleClick 1
Delay 500
End If
//打开游戏
IfColor 944, 631, "255C86", 0 Then
Delay 100
MoveTo 1274, 639
Delay 200
LeftDoubleClick 1
Delay 800
KeyDown 17, 1
KeyPress 86, 1
KeyUp 17, 1
Delay 500
KeyPress "Enter", 1
Delay 500
End If
//游戏开始
FindPic 0,0,1920,1080,"Attachment:\wwch.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 100
LeftDoubleClick 1
Delay 500
KeyPress "F11", 1
Delay 2000
KeyPress "F11", 1
Delay 4500
KeyPress "Esc", 4
End If
//多人游戏
IfColor 67,92, "00DAFE", 0 Then
Delay 100
MoveTo 211,626
Delay 100
LeftClick 1
Delay 100
KeyPress "Esc", 4
Delay 1000
End If
//多人游戏2
IfColor 67,92, "009EEF", 0 Then
Delay 100
MoveTo 211,626
Delay 100
LeftClick 1
Delay 100
KeyPress "Esc", 4
Delay 1000
End If
//工厂
IfColor 472,358, "1EA7C9", 0 Then
Delay 500
MoveTo 109,114
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
KeyPress "Enter", 1
Delay 200
MoveTo 88, 624
LeftClick 1
Delay 2000
MoveTo 67, 92
LeftClick 1
Delay 1000
End If
//卡大厅
IfColor 300,145, "7D65F2", 0 Then
Delay 500
KeyPress "F1", 1
Delay 500
End If
//商店
IfColor 124,526, "5388E6", 0 Then
Delay 1000
MoveTo 153,627
LeftDoubleClick 1
Delay 1500
End If
//小屋
IfColor 56,126, "823D66", 0 Then
Delay 100
MoveTo 88, 624
LeftClick 1
Delay 1500
MoveTo 67, 92
LeftClick 1
Delay 1500
End If
Loop Until DateDiff("s", t, now) > 3000
i = i + 1
End If
While i = 1
If i = 1 Then
//打开游戏
IfColor 812, 500, "F4ECBD", 0 Then
Delay 100
i = i + 1
Delay 100
MoveTo 1861, 21
Delay 100
LeftDoubleClick 1
Delay 1500
Delay 100
End If
//添加好友
FindPic 0,0,1920,1080,"Attachment:\tj.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 200
i = i + 1
Delay 200
MoveTo intX, intY
Delay 200
LeftDoubleClick 1
End If
//提示已登入
IfColor 1054, 509, "2653E5", 0 Then
Delay 100
i = i + 1
Delay 100
MoveTo 1054,509
Delay 100
LeftDoubleClick 1
Delay 500
End If
//大弹窗
IfColor 1219, 476, "2653E5", 0 Then
Delay 100
i = i + 1
Delay 100
MoveTo 1219,476
Delay 100
LeftDoubleClick 1
Delay 500
End If
//中断确定
IfColor 278, 318, "58B379", 0 Then
Delay 100
i = i + 1
Delay 1000
KeyDown 18, 1
KeyPress 115, 1
KeyUp 18, 1
Delay 800
End If
//无认证
IfColor 1042, 509, "2653E5", 0 Then
Delay 100
i = i + 1
Delay 100
MoveTo 1042,509
Delay 100
LeftDoubleClick 1
Delay 1500
End If
//异常处理1
IfColor 1161, 509, "2C57E5", 0 Then
Delay 100
i = i + 1
Delay 100
MoveTo 1161,509
Delay 100
LeftDoubleClick 1
Delay 500
End If
//打开游戏
IfColor 944, 631, "255C86", 0 Then
Delay 100
i = i + 1
Delay 100
MoveTo 1274, 639
Delay 200
LeftDoubleClick 1
Delay 800
KeyDown 17, 1
KeyPress 86, 1
KeyUp 17, 1
Delay 500
KeyPress "Enter", 1
Delay 500
End If
//游戏开始
FindPic 0,0,1920,1080,"Attachment:\wwch.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
Delay 100
i = i + 1
Delay 100
MoveTo intX, intY
Delay 100
LeftDoubleClick 1
Delay 500
KeyPress "F11", 1
Delay 2000
KeyPress "F11", 1
Delay 4500
KeyPress "Esc", 4
End If
//多人游戏
IfColor 67, 92, "00DAFE", 0 Then
Delay 100
i = i + 1
Delay 100
MoveTo 211,626
Delay 100
LeftClick 1
Delay 100
KeyPress "Esc", 4
Delay 1000
End If
//多人游戏2
IfColor 67, 92, "009EEF", 0 Then
Delay 100
i = i + 1
Delay 100
MoveTo 211,626
Delay 100
LeftClick 1
Delay 100
KeyPress "Esc", 4
Delay 1000
End If
//工厂
IfColor 28,361, "3D6774", 0 Then
Delay 500
MoveTo 109,114
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
MoveTo 325,419
LeftClick 1
Delay 200
MoveTo 418,395
LeftClick 1
Delay 200
KeyPress "Enter", 1
Delay 200
MoveTo 88, 624
LeftClick 1
Delay 2000
MoveTo 67, 92
LeftClick 1
Delay 1000
End If
//卡大厅
IfColor 300,145, "7D65F2", 0 Then
Delay 500
KeyPress "F1", 1
Delay 500
End If
//商店
IfColor 124,526, "5388E6", 0 Then
Delay 1000
MoveTo 153,627
LeftDoubleClick 1
Delay 1500
End If
//小屋
IfColor 56,126, "823D66", 0 Then
Delay 100
MoveTo 88, 624
LeftClick 1
Delay 1500
MoveTo 67, 92
LeftClick 1
Delay 1500
End If
End If
While i = 2
//打开游戏
IfColor 812,500, "F4ECBD", 0 Then
Delay 100
MoveTo 1861, 21
Delay 100
LeftDoubleClick 1
Delay 1500
End If
//添加好友
FindPic 0,0,1920,1080,"Attachment:\tj.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 200
LeftDoubleClick 1
End If
//已登入
IfColor 1054,509, "2653E5", 0 Then
Delay 100
MoveTo 1054,509
Delay 100
LeftDoubleClick 1
Delay 500
End If
//大弹窗
IfColor 1219,476, "2653E5", 0 Then
Delay 100
MoveTo 1219,476
Delay 100
LeftDoubleClick 1
Delay 500
End If
//中断确定
IfColor 278,318,"58B379",0 Then
Delay 100
MoveTo 404,372
Delay 100
LeftDoubleClick 1
Delay 800
End If
//无认证
IfColor 1042,509, "2653E5", 0 Then
Delay 100
MoveTo 1042,509
Delay 100
LeftDoubleClick 1
Delay 1500
End If
//异常处理1
IfColor 1161,509, "2C57E5", 0 Then
Delay 100
MoveTo 1161,509
Delay 100
LeftDoubleClick 1
Delay 500
End If
//打开游戏
IfColor 944, 631, "255C86", 0 Then
Delay 100
MoveTo 1274, 639
Delay 200
LeftDoubleClick 1
Delay 800
KeyDown 17, 1
KeyPress 86, 1
KeyUp 17, 1
Delay 500
KeyPress "Enter", 1
Delay 500
End If
//游戏开始
FindPic 0,0,1920,1080,"Attachment:\wwch.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX, intY
Delay 100
LeftDoubleClick 1
Delay 500
KeyPress "F11", 1
Delay 2000
KeyPress "F11", 1
Delay 4500
KeyPress "Esc", 4
End If
//多人游戏
IfColor 67,92, "00DAFE", 0 Then
Delay 100
MoveTo 67,92
Delay 100
LeftClick 1
Delay 100
KeyPress "Esc", 4
Delay 1000
End If
//多人游戏2
IfColor 67,92, "009EEF", 0 Then
Delay 100
MoveTo 67,92
Delay 100
LeftClick 1
Delay 100
KeyPress "Esc", 4
Delay 1000
End If
//进入工厂
IfColor 300,145, "7D65F2", 0 Then
Delay 500
MoveTo 210,623
LeftDoubleClick 1
Delay 1500
MoveTo 693,169
LeftClick 1
Delay 66000
//关闭游戏
MoveTo 800, 25
Delay 100
LeftDoubleClick 1
Delay 100
i=0
End If
Wend
Wend
Wend
Wend