|
本帖最后由 txzz 于 2010-7-30 13:12 编辑
搜索了,实在找不到办法了...
登陆这个论坛,为啥就不行.代码为:
#include <IE.au3>
$oIE = _IECreate ("http://www.sztongshi.com/bbs/index.php",0,1,1,0)
Func denglu()
$o_form = _IEFormGetObjByName($oIE, "frmlogin") ;找到表单
$o_txtuser = _IEFormElementGetObjByName($o_form, "username") ;找到表单中的用户名
$o_txtpass = _IEFormElementGetObjByName($o_form, "password") ;找到表单中的 密码
_IEFormElementSetValue($o_txtuser, "ceshi") ; username
_IEFormElementSetValue($o_txtpass, "123456") ; password
$result = $oIE.document.parentWindow.eval("checkform()") ;提交表单
EndFunc ;==>denglu |
|