本帖最后由 xxsshh 于 2012-2-3 21:02 编辑
我用的是模拟用户点击,年月日全选好后!焦点就在年月日之间不停循环!以致无法完成任务!!请教大虾解惑!!!#include <IE.au3>
$ck = WinExists("QQ注册")
If $ck = 0 Then
$oIE1 = _IECreate ("http://zc.qq.com/chs/index.html?from=client&ptlang=2052&ADUIN=0&ADSESSION=0&ADTAG=CLIENT.QQ.4153_NewAccount_Btn.0")
EndIf
$oIE = _IEAttach("http://zc.qq.com/chs/index.html?from=client&ptlang=2052&ADUIN=0&ADSESSION=0&ADTAG=CLIENT.QQ.4153_NewAccount_Btn.0","url")
$username = _IEGetObjById($oIE,"nick")
_IEFormElementSetValue($username,"xshaitt11111")
_IEAction ($username, "blur")
$password = _IEGetObjById($oIE,"password")
_IEAction ($password, "focus")
_IEFormElementSetValue($password,"x123456")
_IEAction ($password, "blur")
$okpassword = _IEGetObjById($oIE,"password_again")
_IEAction ($okpassword, "focus")
_IEFormElementSetValue($okpassword,"x123456")
_IEAction ($okpassword, "blur")
$Gender = _IEGetObjById($oIE,"sex_1")
_IEAction ($Gender, "click")
$yearvalue = _IEGetObjById($oIE,"year_17")
_IEAction ($yearvalue, "click")
$month = _IEGetObjById($oIE,"month_5")
_IEAction ($month, "click")
$day = _IEGetObjById($oIE,"day_7")
_IEAction ($day, "click")
|