植物大战僵尸

Dim Key, arrintCao, arrintx, lngIndex, pptx, ppty
Dim hwnd, strTitle, arrColor

arrintCao = Array(49, 50, 51, 52, 53, 81, 87, 69, 82, 84, 65)
arrintx = Array(113, 164, 215, 266, 317, 368, 419, 470, 521, 572, 623)
arrColor = Array("154B0A", "061555", "E5A92E", "BD5900", "1E3A0E", _
"B6A5A2", "185D10", "B9A8A5", "1C8407")

Rem start
Key = WaitKey
hwnd = Plugin.Window.MousePoint()
strTitle = Plugin.Window.GetText(hwnd)
If Not Left(strTitle, 6) = "植物大战僵尸" And Not LCase(Left(strTitle, 6)) _
 = "plants" Then
    '未到游戏画面
    Goto start
End If
For lngIndex = 0 To UBound(arrColor)
    IfColor 1, 1, arrColor(lngIndex), 0 Then
        '未到开战画面
        Goto start
    End If
Next
pptx = Round(Plugin.Sys.GetScRX() / 800, 2)
ppty = Round(Plugin.Sys.GetScRY() / 600, 2)
For lngIndex = 0 To UBound(arrintCao)
    If Key = arrintCao(lngIndex) Then
        Call GetCursorPos(intx, inty)
        Call Plugin.Bkgnd.LeftClick _
        (hwnd, arrintx(lngIndex) * pptx, 40 * ppty)
        Call Plugin.Bkgnd.LeftClick(hwnd, intx, inty)
        Exit For
    End If
Next
Goto start

 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值