ie自动登陆 焦点已聚焦到登陆控件了 就点不下去(已解决)
本帖最后由 liufenglg 于 2010-9-6 16:57 编辑#include <IE.au3>
$oIE = _IECreate ("www.126.com")
_IELoadWait ($oIE)
$UserName = _IEGetObjById ($oIE, "iptUser")
$UserName.focus
If IsObj($UserName) Then $UserName.value = "000"
$PassWord = _IEGetObjById ($oIE, "iptPwd")
$PassWord .focus
If IsObj($PassWord) Then $PassWord.value = "000"
$Submit = _IEGetObjByName ($oIE, "enter.x")
$Submit.focus
$Submit.submit
WinActivate("126网易免费邮--你的专业电子邮局 - Windows Internet Explorer","ipt-b")
Send("{enter}")
焦点已经聚焦到登陆那了
$Submit.submit
Send("{enter}")
都不起作用
看了该贴http://www.autoitx.com/forum.php?mod=viewthread&tid=7849&page=1受到 bobde
启发
$Submit.submit该为$Submit.click可以登陆 本帖最后由 xb0x 于 2010-9-6 17:25 编辑
#include <IE.au3>
$oIE = _IECreate ("www.126.com")
_IELoadWait ($oIE)
$UserName = _IEGetObjById ($oIE, "iptUser")
$UserName.focus
If IsObj($UserName) Then $UserName.value = "000"
$PassWord = _IEGetObjById ($oIE, "iptPwd")
$PassWord .focus
If IsObj($PassWord) Then $PassWord.value = "000"
$submit = _IEGetObjByName ($oIE, "enter.x")
If IsObj($submit) Then $submit.click
页:
[1]