|
本帖最后由 lhpei 于 2010-3-11 20:35 编辑
想在这个网址:http://1314.qq.com做一个自动输入帐号和密码,怎么也做不出来,希望高手指点下。
#include <IE.au3>
$oIE = _IECreate ("http://1314.qq.com",0,0,1,0)
_IEPropertySet ($oIE, "toolbar", 0)
_IEPropertySet ($oIE, "width", 600)
_IEPropertySet ($oIE, "height", 600)
_IEPropertySet ($oIE, "resizable", 0)
$oForm = _IEFormGetObjByName ($oIE, "loginfrom")
$oQuery = _IEFormElementGetObjByName ($oForm, "u")
_IEFormElementSetValue ($oQuery, "QQ号")
$oQuery = _IEFormElementGetObjByName ($oForm, "p")
_IEFormElementSetValue ($oQuery, "密码")
_IEAction($oQuery ,"click")
sleep(2000)
_IEAction ($oIE, "visible") |
|