按鍵過滑塊驗證


//做滑塊驗證碼處理
   If judgeDisplayVerifyCode = 1 Then 
 
    Do
    	
      FindPic 0, 0, 0, 0, "Attachment:newQQVerifycodePiece.png", "000000", 0, 0.9, intX, intY
    If intX > -1 And intY > -1 Then 
    Delay 1000
     
        Rem 重復
        
           moveBriceXBeginPoint = intX 
           moveBriceYBeginPoint = intY + shanhai.RndEx(1, 20)
           TouchDown moveBriceXBeginPoint ,moveBriceYBeginPoint, 1
           剩下的需要移動的寬度 = 415 - moveBriceXBeginPoint
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.2, moveBriceYBeginPoint+1, 1, 2
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.3, moveBriceYBeginPoint+1, 1, 1
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.5, moveBriceYBeginPoint+1, 1, 3
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*1, moveBriceYBeginPoint+1, 1,6
           Delay 500
           TouchUp 1
       
   
   
   //驗證碼是否成功 
    FindPic 0, 0, 0, 0, "Attachment:newLoginSuccess.png", "000000", 0, 0.9, intX, intY
    If intX > -1 And intY > -1 Then 
    驗證碼是否成功 = 1
     End If
    FindPic 0, 0, 0, 0, "Attachment:newLoginSuccess2.png", "000000", 0, 0.9, intX, intY
    If intX > -1 And intY > -1 Then 
     驗證碼是否成功 = 1
    End If
           
           
           If 驗證碼是否成功 = 0 Then 
           Delay 3000
           TouchDown moveBriceXBeginPoint ,moveBriceYBeginPoint, 1
           剩下的需要移動的寬度 = 399 - moveBriceXBeginPoint
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.2, moveBriceYBeginPoint+1, 1, 1
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.3, moveBriceYBeginPoint+1, 1, 2
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.5, moveBriceYBeginPoint+1, 1, 3
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*1, moveBriceYBeginPoint+1, 1,5
            Delay 500
            TouchUp  1
             End If
            
   
     //驗證碼是否成功 
    FindPic 0, 0, 0, 0, "Attachment:newLoginSuccess.png", "000000", 0, 0.9, intX, intY
    If intX > -1 And intY > -1 Then 
    驗證碼是否成功 = 1
    End If
    FindPic 0, 0, 0, 0, "Attachment:newLoginSuccess2.png", "000000", 0, 0.9, intX, intY
    If intX > -1 And intY > -1 Then 
    驗證碼是否成功 = 1
    End If       
            
           If 驗證碼是否成功 = 0 Then 
             Delay 3000
           TouchDown moveBriceXBeginPoint ,moveBriceYBeginPoint, 1
           剩下的需要移動的寬度 = 383 - moveBriceXBeginPoint
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.2, moveBriceYBeginPoint+1, 1, 2
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.3, moveBriceYBeginPoint+1, 1, 1
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.5, moveBriceYBeginPoint+1, 1, 3
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*1, moveBriceYBeginPoint+1, 1,6
            Delay 500
            TouchUp  1
            End If
            
            
   //驗證碼是否成功 
    FindPic 0, 0, 0, 0, "Attachment:newLoginSuccess.png", "000000", 0, 0.9, intX, intY
    If intX > -1 And intY > -1 Then 
    驗證碼是否成功 = 1
     End If
  
    FindPic 0, 0, 0, 0, "Attachment:newLoginSuccess2.png", "000000", 0, 0.9, intX, intY
    If intX > -1 And intY > -1 Then 
     驗證碼是否成功 = 1
     End If
            
            
            If 驗證碼是否成功 = 0 Then 
           Delay 3000
           TouchDown moveBriceXBeginPoint ,moveBriceYBeginPoint, 1
           剩下的需要移動的寬度 = 367 - moveBriceXBeginPoint
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.2, moveBriceYBeginPoint+1, 1, 2
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.3, moveBriceYBeginPoint+1, 1, 1
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*0.5, moveBriceYBeginPoint+1, 1, 3
           TouchMove moveBriceXBeginPoint+剩下的需要移動的寬度*1, moveBriceYBeginPoint+1, 1,6
            Delay 500
            TouchUp 1
             End If
            
            
            
            
            
            If 驗證碼是否成功 = 0 Then 
            Delay 3000
              //這里還要檢查一下是否在登錄界面彈出了登錄失敗,如果是還要點擊確定才會返回
              //這里要檢查有沒那圖片彈出,有就點擊那按鈕,然后回到最開始去
             // Goto  登錄按鈕處重復
            
            
            	 Goto 重復
            End If
            
             
            
          Exit Do
    	
    	End If
     Loop
     
   End If

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM