网页表单问题
网址:http://tg.sdo.com/GameZone/Web/GetGamePrize.aspx结构如图1-3
我的脚本只能做到图4,怎么改才能做成图3的位置
#include <IE.au3>
$oIE = _IECreate ("http://tg.sdo.com/GameZone/Web/GetGamePrize.aspx")
$oForm = _IEFormGetObjByName ($oIE, "form1")
$oQuery = _IEFormElementGetObjByName ($oForm, "txt_UserName")
_IEFormElementSetValue ($oQuery, "longzp001")
$oQuery = _IEFormElementGetObjByName ($oForm, "ddlGames")
_IEFormElementOptionSelect ($oQuery , 1, 1, "byIndex")
$oQuery = _IEFormElementGetObjByName ($oForm, "ddlGameAreas")
_IEFormElementOptionSelect ($oQuery , 4, 1, "byIndex")
$oQuery = _IEFormElementGetObjByName ($oForm, "ddlGameServer")
_IEFormElementOptionSelect ($oQuery , 1, 1, "byIndex")
$oQuery = _IEFormElementGetObjByName ($oForm, "btn_Post")
_IEAction($oQuery ,"click")
[ 本帖最后由 yt5588 于 2009-3-3 08:09 编辑 ] 最后一句改成
_IEFormSubmit($oForm, 1)
试试 不行。。。
#include <IE.au3>
$oForm = _IEFormGetObjByName ($oIE, "form1")
$oQuery = _IEFormElementGetObjByName ($oForm, "txt_UserName")
_IEFormElementSetValue ($oQuery, "longzp001")
$oQuery = _IEFormElementGetObjByName ($oForm, "ddlGames")
_IEFormElementOptionSelect ($oQuery , 1, 1, "byIndex")
$oQuery = _IEFormElementGetObjByName ($oForm, "ddlGameAreas")
_IEFormElementOptionSelect ($oQuery , 108, 1, "byvalue", 1)
$oQuery = _IEFormElementGetObjByName ($oForm, "ddlGameServer")
_IEFormElementOptionSelect ($oQuery , 1, 1, "byIndex")
$oQuery = _IEFormElementGetObjByName ($oForm, "btn_Post")
_IEAction($oQuery ,"click")
_IELoadWait($oIE, 100)
还是不行,好像选别的游戏之后,网页会刷新一下,然后AU3就选不了了 原帖由 yt5588 于 2009-1-2 21:51 发表 http://www.autoitx.com/images/common/back.gif
还是不行,好像选别的游戏之后,网页会刷新一下,然后AU3就选不了了
你得设置_IELOADWAIT() 原帖由 liongodmien 于 2009-1-3 10:40 发表 http://www.autoitx.com/images/common/back.gif
你得设置_IELOADWAIT()
不懂怎么设置,老提示出错。。。麻烦了。。
页:
[1]