吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 3440|回复: 39
收起左侧

[其他转载] 关于按键精灵使用教程问题

  [复制链接]
稻草人112 发表于 2021-11-2 20:03
想用按键精灵编辑自动答题,题库有6-8题,随机抽取5题,怎么用按键精灵实现呢?(用按键精灵应该算是最简单的吧?)我是小白,求大佬指点。@楚子沦i

免费评分

参与人数 1热心值 +1 收起 理由
xiaoleiipojie + 1 我很赞同!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

楚子沦i 发表于 2021-11-2 20:41
怎么说呢,你这个可以考虑看看我之前写的那个自动完成新手任务的脚本
虽然没写完。。
[Lua] 纯文本查看 复制代码
// 三国志战略版 小米
Dim intX,intY
Delay 3000
Function 小米
    FindPic 0,0,0,0,"Attachment:小米.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX,intY
        TracePrint "小米启动成功"
        Delay 10000
    End If
End Function
Function 启动游戏
    Do
        FindPic 0,0,0,0,"Attachment:点击进入游戏识别.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint "点击进入游戏"
            Delay 3000
            Exit Do
        Else 
            Delay 1000
        End If
    Loop
    Do
        FindPic 0,0,0,0,"Attachment:前往征战.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint "前往征战"
            Delay 1500
        End If
    Loop
End Function
Function 长期处于不活跃
    FindPic 0,0,0,0,"Attachment:长期不活跃.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX-130,intY+80
        TracePrint "不活跃确定"
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:进入征战.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX,intY
        TracePrint "进入征战"
        Delay 1500
    End If
    Do
        FindPic 0,0,0,0,"Attachment:河北.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        Do
            FindPic 0,0,0,0,"Attachment:入住河北.png","000000",0,0.9,intX,intY
            If intX > -1 And intY > -1 Then
                Tap intX,intY
                TracePrint intX
                TracePrint intY
                Delay 3000
                FindPic 0,0,0,0,"Attachment:本州饱满.png","000000",0,0.9,intX,intY
                If intX > -1 And intY > -1 Then
                    TracePrint "本周爆满"
                Else 
                    Exit Do
                End If
                FindPic 0,0,0,0,"Attachment:起兵.png","000000",0,0.9,intX,intY
                If intX > -1 And intY > -1 Then
                    Tap intX-110,intY
                    TracePrint "起兵"
                    Delay 1500
                End If
            End If
            FindPic 0,0,0,0,"Attachment:山东.png","000000",0,0.9,intX,intY
            If intX > -1 And intY > -1 Then
                Tap intX,intY
                TracePrint intX
                TracePrint intY
                Delay 1500
            End If
            FindPic 0,0,0,0,"Attachment:入驻山东.png","000000",0,0.9,intX,intY
            If intX > -1 And intY > -1 Then
                Tap intX,intY
                TracePrint intX
                TracePrint intY
                Delay 3000
                FindPic 0,0,0,0,"Attachment:本州饱满.png","000000",0,0.9,intX,intY
                If intX > -1 And intY > -1 Then
                    TracePrint "本周爆满"
                End If
                FindPic 0,0,0,0,"Attachment:起兵.png","000000",0,0.9,intX,intY
                If intX > -1 And intY > -1 Then
                    Tap intX-110,intY
                    TracePrint "起兵"
                    Delay 1500
                End If
            End If	
            FindPic 0,0,0,0,"Attachment:第一章.png","000000",0,0.9,intX,intY
            If intX > -1 And intY > -1 Then
                Exit Do
            End If
        Loop
    Loop
End Function
Function 未注册
    Do
        FindPic 0,0,0,0,"Attachment:老头.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            TracePrint "找到老头"
            Exit Do
        End If
    Loop
    Do
        FindPic 0,0,0,0,"Attachment:答题开始.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            TracePrint "开始答题"
            Exit Do
        Else 
            Delay 1000
            Tap 483, 110
        End If
    Loop
    Do
        FindPic 0,0,0,0,"Attachment:贤主1.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主2.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主3.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主4.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主5.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主6.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主7.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主8.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主9.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主10.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主11.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主12.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主13.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主14.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主15.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主16.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主17.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主18.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主19.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主20.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主21.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:贤主.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            TracePrint "已成为贤主"
            Tap intX,intY
            Delay 1500
            Exit Do
        End If
    Loop
    Tap intX,intY
    Delay 3000
    FindPic 0,0,0,0,"Attachment:确认选择.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX,intY
        TracePrint intX
        TracePrint intY
        Delay 1500
    End If
    Do
        FindPic 0,0,0,0,"Attachment:随机.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:进入乱世.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint "进入乱世"
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:名字重复.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            TracePrint "名字重复"
            Delay 1500
        End If
        FindPic 0,0,0,0,"Attachment:择一良地起兵.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX, intY
            Delay 3000
            Exit Do
        End If
    Loop
    Tap intX, intY
    Delay 1500
    Tap intX, intY
    Delay 3000
    Tap intX, intY
    Delay 3000
    Do
        FindPic 0,0,0,0,"Attachment:河北.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap intX,intY
            TracePrint intX
            TracePrint intY
            Delay 1500
        End If
        Do
            FindPic 0,0,0,0,"Attachment:入住河北.png","000000",0,0.9,intX,intY
            If intX > -1 And intY > -1 Then
                Tap intX,intY
                TracePrint intX
                TracePrint intY
                Delay 3000
                FindPic 0,0,0,0,"Attachment:本州饱满.png","000000",0,0.9,intX,intY
                If intX > -1 And intY > -1 Then
                    TracePrint "本周爆满"
                Else 
                    Exit Do
                End If
            End If
            FindPic 0,0,0,0,"Attachment:山东.png","000000",0,0.9,intX,intY
            If intX > -1 And intY > -1 Then
                Tap intX,intY
                TracePrint intX
                TracePrint intY
                Delay 1500
            End If
            FindPic 0,0,0,0,"Attachment:入驻山东.png","000000",0,0.9,intX,intY
            If intX > -1 And intY > -1 Then
                Tap intX,intY
                TracePrint intX
                TracePrint intY
                Delay 3000
                FindPic 0,0,0,0,"Attachment:本州饱满.png","000000",0,0.9,intX,intY
                If intX > -1 And intY > -1 Then
                    TracePrint "本周爆满"
                End If
            End If	
            FindPic 0,0,0,0,"Attachment:第一章.png","000000",0,0.9,intX,intY
            If intX > -1 And intY > -1 Then
                Exit Do
            End If
        Loop
    Loop
End Function
// 同样的答案不同的组合居然会出现不同的结果所以抛弃掉

Function 新手任务
    //新手任务
    //下一步
    FindPic 0,0,0,0,"Attachment:第一章.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap 97,103
        Delay 3000
    End If
    Tap 191, 696
    Delay 1500
    Tap 191, 696
    Delay 1500
    Tap 191, 696
    Delay 1500
    Tap 191, 696
    Delay 1500
    Tap 191, 696
    Delay 1500
    Tap 191, 696
    Delay 1500
    // 招募
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "开始招募"
        Tap intX + 50, intY + 500
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:名将.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        TracePrint "名将"
        Tap intX - 300, intY
        Delay 5000
    End If
    // 出招募将
    Tap 145, 471
    Delay 1500
    Tap 145, 471
    Delay 1500
    Tap 145, 471
    Delay 1500
    Tap 145, 471
    Delay 1500
    FindPic 0,0,0,0,"Attachment:返回校对.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX, intY + 330
        TracePrint "返回"
        Delay 1500
        Tap intX, intY + 330
        TracePrint "返回"
        Delay 1500
    End If
    // 加入队伍
    Tap 223, 602
    Delay 1500
    // 点击主城
    // 识别武将进行偏移
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "点击城池"
        Tap intX + 400, intY + 200
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "点击入城"
        Tap intX + 370, intY + 200
        Delay 1500
    End If
    // 编制部队识别--识别寻访
    FindPic 0,0,0,0,"Attachment:寻访.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX-350,intY
        TracePrint "寻访识别成功并点击编制部队"
        Delay 1500
    End If
    // 编辑部队
    FindPic 0,0,0,0,"Attachment:点将识别校队.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX,intY-430
        TracePrint "配置主将"
        Delay 1500
    End If
    //上阵
    FindPic 0,0,0,0,"Attachment:曹休识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX+5,intY+960
        TracePrint "曹休上阵成功"
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:点将识别校队.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX,intY-220
        TracePrint "配置副将"
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:孙乾识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX,intY+970
        TracePrint "孙乾上阵成功"
        Delay 1500
    End If
    //快速分兵
    FindPic 0,0,0,0,"Attachment:快速分兵校队.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX-70,intY-1000
        TracePrint "快速分兵"
        Delay 1500
        Tap intX, intY
        TracePrint "确认分兵"
        Delay 1500
    End If
    // 返回
    FindPic 0,0,0,0,"Attachment:返回校队.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX+387,intY+80
        TracePrint "返回"
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:返回校对2.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX+630,intY+190
        TracePrint "返回"
        Delay 1500
    End If
    //进攻空地
    Tap 195, 588
    Delay 1500
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "点击空地"
        Tap intX + 380, intY + 210
        Delay 1500
    End If
    //攻占
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "点击攻占"
        Tap intX + 510, intY + 440
        Delay 1500
    End If
    //选择出征部队
    FindPic 0,0,0,0,"Attachment:出征返回校对.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX-600,intY-600
        TracePrint "出征"
        Delay 1500
    End If
    //点击攻占
    FindPic 0,0,0,0,"Attachment:点击攻占.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX, intY + 800
        TracePrint "点击攻占"
        Delay 30000
    End If
    // 等待一段时间后自动进度到首战奖励
    Do
        FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then 
            TracePrint "判断是否有首战奖励"
            Delay 1500
            Tap intX + 350, intY + 200
            Delay 1500
            Exit Do
        Else 
            Delay 10000
        End If
    Loop
    Tap 204, 569
    Delay 1500
    Tap 204, 569
    Delay 1500
    Tap 204, 569
    Delay 1500
    //回城
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "点击回城"
        Tap intX + 445, intY + 770
        Delay 15000
    End If
    Do
        FindPic 0,0,0,0,"Attachment:贼兵.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            TracePrint "贼兵"
            Delay 1500
            Exit Do
        Else 
            Delay 1000
        End If
    Loop
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 1500
    Do
        FindPic 0,0,0,0,"Attachment:战平状态.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            TracePrint "战平状态"
            Delay 1500
            Exit Do
        Else 
            Delay 1000
        End If
    Loop
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 1500
    // 点击主城
    // 识别武将进行偏移
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "点击城池"
        Tap intX + 400, intY + 200
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "点击入城"
        Tap intX + 370, intY + 200
        Delay 1500
    End If
    // 识别寻访
    FindPic 0,0,0,0,"Attachment:寻访.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX-350,intY
        TracePrint "寻访识别成功并点击部队"
        Delay 1500
    End If
    // 切换兵种
    FindPic 0,0,0,0,"Attachment:快速分兵校队.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX+200,intY+40
        TracePrint "切换兵种"
        Delay 1500
    End If
    //枪兵
    FindPic 0,0,0,0,"Attachment:骑兵.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX-200,intY
        TracePrint "切换枪兵"
        Delay 1500
    End If
    //返回
    FindPic 0,0,0,0,"Attachment:返回校队.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX+387,intY+80
        TracePrint "返回"
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:返回校对2.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX+630,intY+190
        TracePrint "返回"
        Delay 1500
    End If
    //行军  不同方向可能!!!!
    FindPic 0,0,0,0,"Attachment:支援义军识别关平.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX - 100, intY + 100
        TracePrint "支援义军点击领地"
    End If
    //行军
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "点击行军"
        Tap intX + 450, intY + 450
        Delay 1500
    End If
    Tap 76, 629
    Delay 1500
    FindPic 0,0,0,0,"Attachment:点击攻占.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX, intY + 800
        TracePrint "点击行军"
        Delay 30000
    End If
    Do
        FindPic 0,0,0,0,"Attachment:战平状态.png","000000",0,0.9,intX,intY
        If intX > -1 And intY > -1 Then
            Tap 188, 586
            Delay 1500
            Tap 188,586
            TracePrint "回城"
            Delay 1500
            Exit Do
        Else 
            Delay 1000
        End If
    Loop
    //回城
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "点击回城"
        Tap intX + 445, intY + 770
        Delay 15000
    End If
    //斥候
    Tap 229, 502
    Delay 1500
    Tap 229, 502
    Delay 1500
    Tap 229, 502
    Delay 1500
    Tap 229, 502
    Delay 1500
    Tap 229, 502
    Delay 1500
    Tap 229, 502
    Delay 1500
    Tap 229, 502
    Delay 1500
    Tap 229, 502
    Delay 1500
    //入城换将
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "点击城池"
        Tap intX + 400, intY + 200
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:任务完成点击识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then 
        TracePrint "点击入城"
        Tap intX + 370, intY + 200
        Delay 1500
    End If
    // 识别寻访
    FindPic 0,0,0,0,"Attachment:寻访.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX-350,intY
        TracePrint "寻访识别成功并点击编制部队"
        Delay 1500
    End If
    // 编辑部队
    FindPic 0,0,0,0,"Attachment:点将识别校队.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX,intY-430
        TracePrint "配置主将"
        Delay 1500
    End If
    // 编制部队识别--识别寻访
    FindPic 0,0,0,0,"Attachment:寻访.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX-350,intY
        TracePrint "寻访识别成功并点击编制部队"
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:下阵.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX,intY-210
        TracePrint "下阵"
        Delay 1500
    End If
    //下阵确定
    FindPic 0,0,0,0,"Attachment:下阵确定.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX,intY-200
        TracePrint "下阵确定"
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:点将识别校队.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX,intY-430
        TracePrint "配置主将"
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:关平识别.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX+5,intY+960
        TracePrint "关平上阵成功"
        Delay 1500
    End If
    //快速分兵
    FindPic 0,0,0,0,"Attachment:快速分兵校队.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX-70,intY-1000
        TracePrint "快速分兵"
        Delay 1500
        Tap intX, intY
        TracePrint "确认分兵"
        Delay 1500
    End If
    // 返回
    FindPic 0,0,0,0,"Attachment:返回校队.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX+387,intY+80
        TracePrint "返回"
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:返回校对2.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX+630,intY+190
        TracePrint "返回"
        Delay 1500
    End If
    //贼人已退
    FindPic 0,0,0,0,"Attachment:战平状态.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        TracePrint "战平状态"
        Tap 224, 477
        Delay 1500
    End If
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 3000
    Tap 224, 477
    Delay 5000
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 1500
    Tap 224, 477
    Delay 1500
End Function

Function 第一章
    FindPic 0,0,0,0,"Attachment:签到奖励.png","000000",0,0.9,intX,intY
	If intX > -1 And intY > -1 Then
		Tap intX-270,intY+80
		TracePrint "签到奖励"
		Delay 1500
	End If
	FindPic 0,0,0,0,"Attachment:招募.png","000000",0,0.9,intX,intY
	If intX > -1 And intY > -1 Then
		Tap intX,intY
		TracePrint "招募"
		Delay 1500
		Tap 155, 582
		Delay 1500
	End If
	FindPic 0,0,0,0,"Attachment:返回.png","000000",0,0.9,intX,intY
	If intX > -1 And intY > -1 Then
		Tap intX,intY
		TracePrint intX
		TracePrint intY
		Delay 1500
		Tap intX, intY
		Delay 1500
	End If
	FindPic 0,0,0,0,"Attachment:更换武将.png","000000",0,0.9,intX,intY
	If intX > -1 And intY > -1 Then
		Tap intX,intY
		TracePrint "更换武将"
		Delay 1500
		Tap intX,intY
	End If
	FindPic 0,0,0,0,"Attachment:提黄孙乾.png","000000",0,0.9,intX,intY
	If intX > -1 And intY > -1 Then
		Tap intX+40,intY
		TracePrint "替换孙乾"
		Delay 1500
	End If
	FindPic 0,0,0,0,"Attachment:确认.png","000000",0,0.9,intX,intY
	If intX > -1 And intY > -1 Then
		Tap intX,intY
		TracePrint intX
		TracePrint intY
		Delay 1500
	End If
	Tap 466, 653
	Delay 1500
	Tap 466, 653
	Delay 1500
	Tap 466, 653
	Delay 1500
	Tap 466, 653
	Delay 1500
	FindPic 0,0,0,0,"Attachment:上阵.png","000000",0,0.9,intX,intY
	If intX > -1 And intY > -1 Then
		Tap intX,intY
		TracePrint "上阵"
		Delay 1500
	End If
	FindPic 0,0,0,0,"Attachment:快速分兵校队.png","000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX-70,intY-1000
        TracePrint "快速分兵"
        Delay 1500
        Tap intX, intY
        TracePrint "确认分兵"
        Delay 1500
    End If
    FindPic 0,0,0,0,"Attachment:返回.png","000000",0,0.9,intX,intY
	If intX > -1 And intY > -1 Then
		Tap intX,intY
		TracePrint "返回"
		Delay 1500
	End If
End Function





Sub main
    If ReadUIConfig("输入框1", 0) = "我爱我的祖国" Then 
        ShowMessage "解锁成功,恭喜"
        Delay 3000
        ShowMessage "如果有问题请发送邮件至[email]datehoer@gmail.com[/email]"
        Delay 3000
        未注册
        新手任务
    End If
End Sub


//FindPic 0,0,0,0,"Attachment:长期不活跃.png","000000",0,0.9,intX,intY
//If intX > -1 And intY > -1 Then
//    Tap intX-130,intY+80
//    TracePrint "不活跃确定"
//    Delay 1500
//End If
1.shui 发表于 2021-11-3 20:00
楚子沦i 发表于 2021-11-3 08:30
我写的循环啊,按键的do循环

数组 = Array("图片1", "图片2", "图片3", "图片4")
For i = 0 To UBound(数组)
    FindPic 0,0,0,0,"Attachment:"&数组(i),"000000",0,0.9,intX,intY
    If intX > -1 And intY > -1 Then
        Tap intX,intY
        TracePrint 数组(i)
        Delay 10000
    End If
Next
你试试这样写
xiaoleiipojie 发表于 2021-11-2 20:16
 楼主| 稻草人112 发表于 2021-11-2 20:17

哥们,你学到啥了啊我是来求教的啊
後海 发表于 2021-11-2 20:20
用识图抓取题目
 楼主| 稻草人112 发表于 2021-11-2 20:24
後海 发表于 2021-11-2 20:20
用识图抓取题目

可以连续抓取多张图片吗?因为一轮有5道题目,最起码也要抓取5张吧?
15013223927 发表于 2021-11-2 20:29
多谢分享。。。
阿奥特撒尔德 发表于 2021-11-2 20:37
我只会点点的操作
 楼主| 稻草人112 发表于 2021-11-2 20:39

答题也是点点点的
 楼主| 稻草人112 发表于 2021-11-2 20:46
楚子沦i 发表于 2021-11-2 20:41
怎么说呢,你这个可以考虑看看我之前写的那个自动完成新手任务的脚本
虽然没写完。。
[mw_shl_code=lua,t ...

太难了。。。。。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-25 11:23

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表