这个下拉框的日期如何操作呀?搞了一个早上搞不定【已经解决】
本帖最后由 loveauto 于 2012-10-18 08:39 编辑#Include <FF.au3>
#Include <FFEx.au3>
Local $qqurl='http://zc.qq.com/chs/index.html'
_FFStart($qqurl,"default",2)
If _FFIsConnected() Then
_FFSetValueById("nick","test")
_FFSetValueById("password","aaaaa1234")
_FFSetValueById("password_again","aaaaa1234")
_FFSetValueById("year_value",Random(1970,2000,1)&"年")
_FFSetValueById("month_value",Random(1,12,1)&"月")
_FFSetValueById("day_value",Random(1,28,1)&"日")
_FFClick("submit","id")
endif 这样赋值后,界面上看上去 年月日都有值了,单提交的时候提示 没有选择日期,_FFClick("year_value","id")这样方法,年的下拉框是点开了,单如何移动鼠标去向下选择呀, _FFClick("year_value","id")
_FFWindowSelect("QQ注册","title")
Local $aPos = MouseGetPos()
MouseMove($aPos, $aPos+500, 100)
MouseClick("left",$aPos,$aPos+500)这样的方式,获取不到窗口哟 你这个QQ注册器,直接用IE对象操作方式完成,会方便好多的
#include "ie.au3"
$ie = _IECreate('http://zc.qq.com/chs/index.html')
$obj = _IEGetObjById($ie, "nick")
$obj.value = "aabbcc"
$obj = _IEGetObjById($ie, "password")
$obj.value = "aabbcc123456"
$obj = _IEGetObjById($ie, "password_again")
$obj.value = "aabbcc123456"
$obj = _IEGetObjById($ie, "year_value")
$obj.Focus()
$obj.value = Random(1970,2000,1)&"年"
$obj = _IEGetObjById($ie, "month_value")
$obj.Focus()
$obj.value = Random(1,12,1)&"月"
$obj = _IEGetObjById($ie, "day_value")
$obj.Focus()
$obj.value = Random(1,28,1)&"日"
$obj = _IEGetObjById($ie, "code")
$obj.Focus()
MsgBox(0,0,"手动输入后确定")
$obj = _IEGetObjById($ie, "submit")
_IEAction($ie, "click")
页:
[1]