脚本
piaoling 2018-10-29 11:16:20
Function gotoPosition()
MoveTo 225, 568
Delay 2428
LeftClick 1
MoveTo 199, 331
Delay 1648
LeftClick 1
Delay 1025
KeyDown "2", 1
Delay 91
KeyUp "2", 1
Delay 441
KeyDown "9", 1
Delay 58
KeyUp "9", 1
Delay 203
KeyDown "9", 1
Delay 54
KeyUp "9", 1
MoveTo 266, 334
Delay 1409
LeftClick 1
Delay 1098
KeyDown "2", 1
Delay 89
KeyUp "2", 1
Delay 322
KeyDown "4", 1
Delay 82
KeyUp "4", 1
Delay 344
KeyDown "4", 1
Delay 87
KeyUp "4", 1
MoveTo 261, 372
Delay 543
LeftClick 1
MoveTo 190, 461
Delay 794
LeftClick 1
//前往坐标结束
End Function
//dim targetX,targetY
targetX = 122
targetY= 373
Function translateEnergy(dtimes)
times = dtimes
While times <> 0
MoveTo targetX, targetY
Delay 1241
LeftClick 1
MoveTo 88, 443
Delay 1296
LeftClick 1
MoveTo 104, 362
Delay 1837
LeftDown 1
Delay 511
MoveTo 340, 392
Delay 511
LeftUp 1
MoveTo 195, 653
Delay 741
LeftClick 1
times = times-1
Wend
End Function
Function translateCash()
times = 6
While times <> 0
Delay 1472
MoveTo targetX, targetY
LeftClick 1
MoveTo 110, 446
Delay 1112
LeftClick 1
MoveTo 118, 571
Delay 1624
LeftDown 1
Delay 479
MoveTo 372, 565
Delay 479
LeftUp 1
MoveTo 184, 647
Delay 472
LeftClick 1
times = times-1
Wend
End Function
Function translateSteel()
times = 750
While times <> 0
Delay 1472
MoveTo targetX, targetY
LeftClick 1
MoveTo 104, 447
Delay 1227
LeftClick 1
MoveTo 101, 490
Delay 1113
LeftDown 1
Delay 416
MoveTo 350, 507
Delay 416
LeftUp 1
MoveTo 200, 647
Delay 1321
LeftClick 1
times = times-1
Wend
End Function
Function translateOil()
times = 10
While times <> 0
Delay 1472
MoveTo targetX, targetY
LeftClick 1
MoveTo 89, 436
Delay 1180
LeftClick 1
MoveTo 101, 418
Delay 1236
LeftDown 1
Delay 400
MoveTo 360, 435
Delay 400
LeftUp 1
MoveTo 183, 652
Delay 1025
LeftClick 1
times = times-1
Wend
End Function
Function translateRice()
times = 300
While times <> 0
Delay 1572
MoveTo targetX, targetY
LeftClick 1
MoveTo 104, 450
Delay 1453
LeftClick 1
MoveTo 108, 299
Delay 841
LeftDown 1
Delay 411
MoveTo 393, 307
Delay 411
LeftUp 1
MoveTo 195, 653
Delay 673
LeftClick 1
Wend
End Function
gotoPosition
//translateCash
translateEnergy (700)
//translateSteel
//translateOil
//translateRice
//定义一个函数,可以在脚本中调用这个函数,支持参数和返回值
发表评论(评论将通过邮件发给作者):