|
一,定期刷远古时代捕猎和收税
//转移到城市
MoveTo 898,466
LeftClick 1
Delay 10000
//点收税
MoveTo 776,865
LeftClick 1
Delay 20000
//进入刷捕猎循环
Call Research()
//转移到城市
MoveTo 898,466
LeftClick 1
Delay 10000
//点全部收取
MoveTo 1336,511
LeftClick 1
Delay 10000
//进入研究循环
Call Research()
Sub Research()
//点研究
MoveTo 724,466
LeftClick 1
Delay 20000
//点远古时代
MoveTo 689,517
LeftClick 1
Delay 20000
//第一次研究
MoveTo 1286,840
LeftClick 1
Delay 20000
//循环约半小时,点继续研究
For 128
MoveTo 1264,543
LeftClick 1
Delay 13550
Next
End Sub
二 工会会员界面自动加好友
Sub AddFriend()
Dim retX, retY
Rem FindReturn
FindPic 584,208,1360,442,"Attachment:\rt.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
retX = intX+10
retY = intY+5
Else
Delay 1000
Goto FindReturn
End If
//找“加为盟友"
FindPic 584,208,1360,442,"Attachment:\join.bmp",0.99,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX + 10, intY + 5
Delay 1500
LeftClick 1
Delay 1000
//找确认
Rem FindOK
FindPic 584,208,1360,442,"Attachment:\ok.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX + 10, intY + 5
Delay 1500
LeftClick 1
Delay 1000
//找“军队”,实际是等待页面刷新
Rem FindMT
FindPic 584,208,1360,442,"Attachment:\mt.bmp",0.9,intX,intY
If intX > 0 And intY > 0 Then
MoveTo retX, retY
Delay 1500
LeftClick 1
Else
Delay 1000
Goto FindMT
End If
Else
Delay 1000
Goto FindOK
End If
Else
MoveTo retX, retY
LeftClick 1
End If
End Sub
//列表的行高
HT = 31
//找会员字样的图片
FindPic 584,208,1360,442,"Attachment:\member.bmp",0.99,intX,intY
If intX > 0 And intY > 0 Then
X = intX + 37
Y = intY + 41
MoveTo X, Y
Delay 1000
LeftClick 1
Delay 1000
AddFriend
For 19
Y = Y + HT
MoveTo X, Y
Delay 1000
LeftClick 1
Delay 1000
AddFriend
Next
Else
MessageBox "找不到列表"
End If |
评分
-
查看全部评分
|