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 作者: nightcat 时间: 2013-6-2 22:18
看不懂!忒专业了!
心中有所疑虑,这算不算外挂呢?@老兵帅客 你不加入我们的行列,白白浪费你的技能,好可惜! 作者: 老兵帅客 时间: 2013-6-2 22:36