x=int(Mid(XLwujiang1,1,s1-1)):y=int(Mid(XLwujiang1,s1+1))+20*2
        Else 
           x=440:y=320+20*2
        End If  
        MoveTo x,y     
        Delay 500
        LeftClick 2 
        found=false
        Call FindPic(150,100,1100,650,"傲视天地\按钮开始训练.bmp",0.9,intX,intY)
        outi=0
        While not found and outi<3
            If intX>0 and intY>0 then
                MoveTo intX,intY
                Delay 1000
                LeftClick 2                    
                found=true
            End if
            If not found then
                Call FindPic(150,100,1100,650,"傲视天地\按钮开始训练.bmp",0.9,intX,intY)
                Delay 500
                If intX>0 and intY>0 then
                  
                Else
                  Call FindPic(150,100,1100,650,"傲视天地\按钮结束训练.bmp",0.9,intX,intY)
                  Delay 500
                  If intX>0 and intY>0 then
                     found=true
                     if XLTuFeiMengJin=3 then //突飞猛进开启
                       MoveTo intX,intY+32
                       Delay 1000
                       LeftClick 2 
                     end If
                  End If
                End If
            end If
            outi=outi+1
        Wend
        End If
        Call FindPic(150,100,1100,650,"傲视天地\按钮训练界面确定.bmp",0.9,intX,intY)
        If intX>0 and intY>0 then
          Goto 训练结束
        End If
        If XunLian=1 or XunLian=2 or XunLian=3 then//1、2方案第四位武将训练
        s1=InStr(XLwujiang1,",")
        If s1>0 Then
           x=int(Mid(XLwujiang1,1,s1-1)):y=int(Mid(XLwujiang1,s1+1))+20*3
        Else 
           x=440:y=320+20*3
        End If  
        MoveTo x,y     
        Delay 500
        LeftClick 2 
        found=false
        Call FindPic(150,100,1100,650,"傲视天地\按钮开始训练.bmp",0.9,intX,intY)
        outi=0
        While not found and outi<3
            If intX>0 and intY>0 then
                MoveTo intX,intY
                Delay 1000
                LeftClick 2                    
                found=true
            End if
            If not found then
                Call FindPic(150,100,1100,650,"傲视天地\按钮开始训练.bmp",0.9,intX,intY)
                Delay 500
                If intX>0 and intY>0 then
                  
                Else
                  Call FindPic(150,100,1100,650,"傲视天地\按钮结束训练.bmp",0.9,intX,intY)
                  Delay 500
                  If intX>0 and intY>0 then
                     found=true
                     if XLTuFeiMengJin=4 then //突飞猛进开启
                       MoveTo intX,intY+32
                       Delay 1000
                       LeftClick 2 
                     end If
                  End If
                End If
            end If
            outi=outi+1
        Wend
        End If
        Call FindPic(150,100,1100,650,"傲视天地\按钮训练界面确定.bmp",0.9,intX,intY)
        If intX>0 and intY>0 then
          Goto 训练结束
        End If
        If XunLian=2 or XunLian=3 then//1、2方案第五位武将训练
        s1=InStr(XLwujiang1,",")
        If s1>0 Then
           x=int(Mid(XLwujiang1,1,s1-1)):y=int(Mid(XLwujiang1,s1+1))+20*4
        Else 
           x=440:y=320+20*4
        End If  
        MoveTo x,y     
        Delay 500
        LeftClick 2 
        found=false
        Call FindPic(150,100,1100,650,"傲视天地\按钮开始训练.bmp",0.9,intX,intY)
        outi=0