|
本帖最后由 hxg123 于 2010-1-4 14:44 编辑
;~ 根据_IECreate ()的帮助文件,$f_visible=0 不显示浏览器窗口,我用的是TheWorld浏览器,每次运行都会出现登录界面,而用批处理命令或htm文件自动登录就直接跳转到登陆后的界面。
;~ 如下程序,请问如何屏蔽登录页面 或直接发送帐户密码信息并返回登陆后的页面
#include <IE.au3>
$username="autoittest@163.com"
$password="11111111"
mail_163($username,$password)
Func mail_163($username,$password)
$oIE = _IECreate ("http://reg.163.com/login.jsp?type=1&url=http://fm163.163.com/coremail/fcg/ntesdoor2?lightweight%3D1%26verifycookie%3D0%26language%3D-1%26style%3D-1",0,0)
$oForm = _IEFormGetObjByName ($oIE, "fLogin")
$o_username = _IEFormElementGetObjByName ($oForm, "username")
$o_password = _IEFormElementGetObjByName ($oForm, "password")
$o_Submit = _IEFormElementGetObjByName ($oForm, "Submit")
_IEFormElementSetValue ($o_username, $username)
_IEFormElementSetValue ($o_password, $password)
_IEAction ($o_Submit, "click")
EndFunc |
|