其他分享
首页 > 其他分享> > 按键精灵

按键精灵

作者:互联网

按键精灵实现万国觉醒打野

学习路径

学习回顾

//---------------------收资源---------------------//
//收玉米
IfColor 1038,867, "33D8FF", 0 Then
    MoveTo 1038,867
    LeftClick 1
    Delay 1000
Else
End If

//帮助队友
MoveTo 605,531
LeftClick 1
Delay 1000
MoveTo 681,541
LeftClick 1
Delay 1000

//收石头
IfColor 806,380, "EEDDD7", 0 Then
    MoveTo 806,380
    LeftClick 1
    Delay 1000
Else
End If

//收木头
IfColor 1577,500, "0A378D", 0 Then
    MoveTo 1577,500
    LeftClick 1
    Delay 1000
Else
End If

//1204,887  FF50B7
//2188,344  A9729E
IfColor 1204,887, "FF50B7", 0 Then
    MoveTo 2188,344
    LeftClick 1
    Delay 3000
Else
End If

//--------------------打野---------------------//
//世界切换
MoveTo 229,1392
LeftClick 1
Delay 1000

//搜索
MoveTo 166,1158
LeftClick 1
Delay 3000

//搜索确定
MoveTo 670,1071
LeftClick 1
Delay 500

//点击怪兽
MoveTo 1274,814
LeftClick 1
Delay 500

//判断攻击框在左右方
ifcolor 410,628,"95AFC9",0 Then
    moveto 777,1061
    leftclick 1
    delay 1000
else
    //进攻
    MoveTo 1777,1038
    LeftClick 1
    Delay 1000
end if

//创建部队
MoveTo 1965,424
LeftClick 1
Delay 1000

//进军
MoveTo 1930,1332
LeftClick 1
Delay 30000

//切换世界
MoveTo 229,1392
LeftClick 1
Delay 2000

//判断是否要治疗
IfColor 695,871, "1D1BF3", 0 Then
    //医院
    MoveTo 725,982
    LeftClick 1
    Delay 1000

    //治疗
    MoveTo 963,1190
    LeftClick 1
    Delay 1000

    //开始治疗
    MoveTo 1975,1248
    LeftClick 1
    Delay 20000

    //医院
    MoveTo 725,982
    LeftClick 1
    Delay 1000

Else
End If

标签:LeftClick,MoveTo,End,IfColor,Delay,按键精灵,1000
来源: https://www.cnblogs.com/unlook/p/15314054.html