找回密码
 加入
搜索
查看: 3642|回复: 4

[IE类操作] 请问http://home.51cto.com没有表单怎么提交?【已解决】

[复制链接]
发表于 2013-6-8 00:35:54 | 显示全部楼层 |阅读模式
本帖最后由 sambodhi 于 2013-6-8 07:19 编辑

请问http://home.51cto.com没有表单,怎么实现自动填入用户名和密码来登陆呢?
看了首页的源码就是没有找到表单,Form的名字竟然是空的,晕死!
恳求大牛们指点一二,谢谢!!
发表于 2013-6-8 06:37:38 | 显示全部楼层
$oIE = _IECreate("http://home.51cto.com/")
$oInputs = _IETagNameGetCollection($oIE, "input")
For $oInput In $oInputs
        If $oInput.name = "email" Then $oInput.value = "username"
        If $oInput.name = "passwd" Then $oInput.value = "password"
        If $oInput.name = "button" Then _IEAction($oInput, "click")
Next
 楼主| 发表于 2013-6-8 07:19:09 | 显示全部楼层
回复 2# haijie1223


    看后,恍然大悟,谢谢您的指点!autoitx有您更精彩!
发表于 2013-6-9 10:09:32 | 显示全部楼层
回复 2# haijie1223


    IE类 Input对象,留个记号,以备不时之需
发表于 2014-6-13 20:00:20 | 显示全部楼层
这方法 input 使用过
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-20 00:51 , Processed in 0.078243 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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