|
本帖最后由 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 ... tid=7849&page=1受到 bob de
启发
$Submit.submit该为$Submit.click可以登陆 |
|