Plugin.Window.Foreground()
HwndB = Plugin.Window.GetKeyFocusWnd()
UserVar FireFrequency=10 "开枪频率【建议进游戏后调节!】"
UserVar FireOne=0 "第一枪延时!"
UserVar BulletQuantity=30 "子弹数量!"
UserVar Shooting=1 "每次开枪子弹连射数量"
FireF=FireFrequency
FireO=FireOne
BulletQ=BulletQuantity
BulletA=BulletQ
Rem AutounFire
FindColorEx 396,296,404,380,"2141C6",0,0.7,FireAX,FireAY
If FireAX > 0 And FireAY > 0 Then
Call Fire()
End If
FindColorEx 396,296,404,380,"2E3BAD",0,0.7,FireBX,FireBY
If FireBX > 0 And FireBY > 0 Then
Call Fire()
    End If
Goto AutounFire
Sub Fire()
    If BulletB>=1 Then
        For Shooting
            Call Plugin.Bkgnd.LeftClick(HwndB, 400, 300)
BulletB=BulletB-Shooting
                Delay FireF
Next
Else
                For Shooting
            Call Plugin.Bkgnd.LeftClick(HwndB, 400, 300)
BulletB=BulletA-Shooting
        Delay FireF
            Next
End If
If BulletB=0 Then
KeyPress "R", 1
Delay 3000
BulletQ=BulletA
Else
BulletQ=BulletB
End If
End Sub