没有合适的资源?快使用搜索试试~ 我知道了~
vb自动识别验证码源代码
3星 · 超过75%的资源 需积分: 16 209 下载量 38 浏览量
2010-07-24
16:28:12
上传
评论 1
收藏 2KB TXT 举报
温馨提示
试读
2页
vb源代码,如何自动识别网站上的源代码,本程序用了一个getpixel的API, Private Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, ByVal y As Long) As Long
资源推荐
资源详情
资源评论
Option Base 1
Dim c1(63) As Integer '存放单个验证码的字模
Private Sub Command1_Click()
Dim b() As Byte
Dim xx As Integer '验证码X坐标的起始位置
'Y坐标的y1和y2是固定的
Command1.Enabled = False
Label1.Caption = ""
xx = 4
x = FreeFile
Inet1.URL = "http://member.cnc.mytv365.net/validateCode/index.asp?200782061408"
b() = Inet1.OpenURL(, icByteArray)
Open "c:\tmp.bmp" For Binary Access Write As #x
Put #x, , b()
Close #x
Picture1.Picture = LoadPicture("c:\tmp.bmp")
For i = 1 To 4
Label1.Caption = Label1.Caption & getNumber(xx, xx + 6, 3, 11)
xx = xx + 8
Next i
Command1.Enabled = True
End Sub
Function getNumber(x1 As Integer, x2 As Integer, y1 As Integer, y2 As Integer) As Integer
Dim tmp As Long
Dim s1 As String
x = FreeFile
For i = x1 To x2
Dim c1(63) As Integer '存放单个验证码的字模
Private Sub Command1_Click()
Dim b() As Byte
Dim xx As Integer '验证码X坐标的起始位置
'Y坐标的y1和y2是固定的
Command1.Enabled = False
Label1.Caption = ""
xx = 4
x = FreeFile
Inet1.URL = "http://member.cnc.mytv365.net/validateCode/index.asp?200782061408"
b() = Inet1.OpenURL(, icByteArray)
Open "c:\tmp.bmp" For Binary Access Write As #x
Put #x, , b()
Close #x
Picture1.Picture = LoadPicture("c:\tmp.bmp")
For i = 1 To 4
Label1.Caption = Label1.Caption & getNumber(xx, xx + 6, 3, 11)
xx = xx + 8
Next i
Command1.Enabled = True
End Sub
Function getNumber(x1 As Integer, x2 As Integer, y1 As Integer, y2 As Integer) As Integer
Dim tmp As Long
Dim s1 As String
x = FreeFile
For i = x1 To x2
wulingwang
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页