找回密码
 加入
搜索
查看: 2828|回复: 1

[IE类操作] [已解决]Autoit无法在IE自动填写用户名

[复制链接]
发表于 2014-6-6 19:10:55 | 显示全部楼层 |阅读模式
本帖最后由 bin123485 于 2014-6-8 19:26 编辑

写了短代码自动输入用户名,在115和百度都成功了,但是在中国教师教育网试了不行。
网址:http://2014gdzj.fxl.teacheredu.cn/Main/index.aspx
#include <IE.au3>
$oIE = _IECreate ("http://2014gdzj.fxl.teacheredu.cn/Main/index.aspx",0,0,1,0)
$oForm = _IEFormGetObjByName ($oIE, "form1")
$oQuery1 = _IEFormElementGetObjByName ($oForm, "username")
_IEFormElementSetValue ($oQuery1, "1111")
发表于 2014-6-7 10:53:22 | 显示全部楼层
它在一个iframe里面,需要跨域处理
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-5 01:00 , Processed in 0.079758 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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