找回密码
 加入
搜索
查看: 11401|回复: 32

[IE类操作] YY注册辅助 (只为学习交流非恶意)

 火... [复制链接]
发表于 2011-10-20 20:55:32 | 显示全部楼层 |阅读模式
本帖最后由 haodd 于 2011-10-20 21:00 编辑

主要功能都已经完成

由于各种原因没有得完善!

求助坛里的高手一起协助 完善起来!

有意的 联系 我把写好的那部分发给你

前提:
索取源码前,你必须要能胜任完善其源码(即:尽可能尽善尽美的决心和能力)
你可以任意修改!
修改完后,需把你修改的源码发给我,且不能把本人的源码 和 你修改后的源码 做不法途径。
不能把本人的源码 和 你修改后的源码 在本坛以外发布! 谢谢!



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2011-10-20 21:53:56 | 显示全部楼层
厉害,能写这个东西了!想看代码,不过没有能力去完成!
发表于 2011-10-20 23:24:14 | 显示全部楼层
学au3我现在就会ie模拟类,还有自动操作的...写过这方面的..可是没写过楼主这么功能多的....
希望可以看看楼主代码,学习下注册的模板...不过我可能没有能力可以完善
发表于 2011-10-21 01:53:10 | 显示全部楼层
能不能分享一下,谢谢
发表于 2011-10-21 02:42:47 | 显示全部楼层
模拟IE?很好。。。。
发表于 2011-10-21 13:06:16 | 显示全部楼层
我是来看图片的,设计不错
 楼主| 发表于 2011-10-21 13:08:23 | 显示全部楼层
回复 2# hzxymkb


    已通过站内信息发送 请注意查收
 楼主| 发表于 2011-10-21 13:08:42 | 显示全部楼层
回复 3# suiyefeng


    已通过站内信息发送 请注意查收!
发表于 2011-10-21 15:36:58 | 显示全部楼层
赞··········
发表于 2011-10-21 15:55:59 | 显示全部楼层
前些日子想做来着  但验证码调用一直弄不好  还是附上我的源码   方便大神指点  顺便求LZ源码
#include <ButtonConstants.au3>
#include <GUIListBox.au3>
#include <IE.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$file = @WorkingDir & "\register.jpg"
FileDelete($file)
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("YY注册机", 441, 226, 350, 291)
$Pic1 = GUICtrlCreatePic("", 11, 112, 200, 70, BitOR($GUI_SS_DEFAULT_PIC,$WS_CLIPSIBLINGS))
;$LabelCheck = GUICtrlCreateLabel("看不清图片点击图片更换", 43, 188, 136, 17)
$listview = GUICtrlCreateListView("帐      号|密       码", 224, 16, 200, 190)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 95)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 95)
$listview_0 = GUICtrlCreateListViewItem("name|password", $listview)
$Label1 = GUICtrlCreateLabel("用户名", 16, 16, 40, 17)
$Label2 = GUICtrlCreateLabel("密   码", 16, 48, 40, 17)
$Label3 = GUICtrlCreateLabel("验证码", 16, 80, 36, 17)
$Input1 = GUICtrlCreateInput("", 64, 16, 145, 21)
$Input2 = GUICtrlCreateInput("", 64, 48, 145, 21)
$Input3 = GUICtrlCreateInput("", 64, 80, 145, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Dim $pic, $oForm, $oIE
_get_key()
While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Input3
                        If StringLen(GUICtrlRead($Input1)) < 4 Or StringLen(GUICtrlRead($Input1)) > 16 Or StringLen(GUICtrlRead($Input2)) < 6 Or StringLen(GUICtrlRead($Input2)) > 20 Then
                                MsgBox(4096, "", "你的输入不符合注册要求,检查一下你什么没填")
                        Else
                                Reg()
                        EndIf
        EndSwitch
WEnd

Func Reg()
        $name = GUICtrlRead($Input1)
        $password = GUICtrlRead($Input2)
        $yzm = GUICtrlRead($Input3)
        $oIE = _IECreate("http://udb.yy.com/register.do", 0, 0, 1) ;注册网页
        $oForm = _IEFormGetObjByName($oIE, "frmpost")
        $oQuery = _IEFormElementGetObjByName($oForm, "username") ;用户名
        _IEFormElementSetValue($oQuery, $name)
        $oQuery = _IEFormElementGetObjByName($oForm, "password") ;密码
        _IEFormElementSetValue($oQuery, $password)
        $oQuery = _IEFormElementGetObjByName($oForm, "password2") ;再次输密码
        _IEFormElementSetValue($oQuery, $password)
        $oQuery = _IEFormElementGetObjByName($oForm, "securityCode") ;验证码
        _IEFormElementSetValue($oQuery, $yzm)
        $xieyi = _IEFormElementGetObjByName($oForm, "agreement") ;同意协议
        _IEAction($xieyi, "click") ;点击协议
        $button = _IEFormElementGetObjByName($oForm, "submitButton") ;按钮
        $ture = _IEAction($button, "click") ;点击按钮
        $sText = _IEBodyReadText($oIE)
        $result = StringInStr($sText, "恭喜您注册成功")
        If $result <> "0" Then
                GUICtrlCreateListViewItem($name & "|" & $password, $listview)
        Else
                MsgBox(0, "Body Text", $sText)
        EndIf
EndFunc   ;==>Reg

Func _get_key()
        InetGet ("http://udb.yy.com/verify/register.do", "register.jpg")
        GUICtrlSetImage ($pic1,"register.jpg")
EndFunc
 楼主| 发表于 2011-10-21 19:31:23 | 显示全部楼层
回复 10# jj119120


    你的已经很不错啦

已经通过站内信 发源码给你了
请注意查收哦!
有疑问 请站内信回复
发表于 2011-10-21 21:04:31 | 显示全部楼层
回复 11# haodd


    嗯  收到了   正在学习ing   LZ的源码对我还是很有启发的   谢谢!!!
发表于 2011-10-22 16:20:34 | 显示全部楼层
菜鸟飘过
发表于 2011-10-22 16:44:27 | 显示全部楼层
回复 11# haodd
哥哥你改的源代码能不能给我一份,我也想学学,谢谢哥哥了
发表于 2011-10-22 16:44:58 | 显示全部楼层
回复  haodd


    嗯  收到了   正在学习ing   LZ的源码对我还是很有启发的   谢谢!!!
jj119120 发表于 2011-10-21 21:04


哥哥能不能把改的源代码能不能给我一份,我也想学学,谢谢哥哥了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-16 21:41 , Processed in 0.089729 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表