比較弱智的驗證碼

來源:互聯網
上載者:User

Sub 驗證碼識別()    ActiveSheet.Shapes.SelectAll    Selection.Delete    Cells.Clear    Columns("b").NumberFormatLocal = "@"    For i = 1 To 10        yzm = Format(Int(Rnd() * 10000), "0000")        yzm1 = ""        For j = 1 To 4            a = Val(Mid(yzm, j, 1)) - j            If a < 0 Then a = a + 10            yzm1 = yzm1 & a        Next j        Cells(i, 1).RowHeight = 15        Cells(i, 1).ColumnWidth = 5.25        ML = Cells(i, 1).Left        MT = Cells(i, 1).Top        MW = Cells(i, 1).Width        MH = Cells(i, 1).Height        Cells(i, 1).Select        ActiveSheet.Shapes.AddShape(msoShapeRectangle, ML, MT, MW, MH).Select        Selection.ShapeRange.Fill.UserPicture "http://www.gdltax.gov.cn/wssw/checkcode/checkcode" & yzm & ".png"        Selection.ShapeRange.Line.Visible = False        Cells(i, 2) = yzm1    Next iEnd Sub




 

Private Sub Command1_Click()    '新型農村合作醫學管理平台_使用者登陸    On Error Resume Next    With CreateObject("internetexplorer.application")        .Visible = True        .Navigate "http://125.46.57.85/hnxnh/login/login.aspx"        Do Until .ReadyState = 4            DoEvents        Loop        .document.All("TB_userid").Value = "使用者名稱"        .document.All("TB_userpwd").Value = "密  碼"        .document.All("Tb_yzm").Value = .document.getelementbyid("checkCode").innerText    '驗證碼        .document.All("ImageButton1").Click    End WithEnd Sub


相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.