Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500
    ElseIf xl1 = 3 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 260)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500
    ElseIf xl1 = 4 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 280)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500 
        ElseIf xl1 = 5 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 300)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Else
    End If 
    Delay 800
End Sub 
 
Sub 武将训练2
    Delay 1000
    If xl2 = 1 then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 220)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500
    ElseIf xl2 = 2 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 240)
        Delay 1200
       Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500
    ElseIf xl2 = 3 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 260)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500
    ElseIf xl2 = 4 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 280)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500 
        ElseIf xl2 = 5 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 300)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Else
    End If 
    Delay 800
End Sub  
 
Sub 武将训练3
    Delay 1000
    If xl3 = 1 then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 220)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500
    ElseIf xl3 = 2 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 240)
        Delay 1200
       Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500
    ElseIf xl3 = 3 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 260)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500
    ElseIf xl3 = 4 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 280)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500 
        ElseIf xl3 = 5 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 300)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Else
    End If 
    Delay 800
End Sub   

Sub 武将训练4
    Delay 1000
    If xl4 = 1 then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 220)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500
    ElseIf xl4 = 2 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 240)
        Delay 1200
       Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500
    ElseIf xl4 = 3 Then
    Call Plugin.Bkgnd.LeftClick(Hwnd, 320, 260)
        Delay 1200
        Call Plugin.Bkgnd.LeftClick(Hwnd, 730, 415)
        Delay 500