|
2#
楼主 |
发表于 2006-5-31 14:30:27
|
只看该作者
附脚本,每次运行到
web_submit_form("index.aspx",
"Snapshot=t2.inf",出问题
---------------------------------------------------
#include "web_api.h"
Action()
{
web_url("www.baidu.com",
"URL=http://www.gyt56.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/top_bg_grow.gif", ENDITEM,
"Url=/images/5.swf", "Referer=", ENDITEM,
"Url=/images/TOP.swf", "Referer=", ENDITEM,
LAST);
web_submit_form("index.aspx",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value=宝钢钢贸", ENDITEM,
"Name=password", "Value=8888", ENDITEM,
"Name=optionn", "Value=<OFF>", ENDITEM,
"Name=dd1", "Value=登 录", ENDITEM,
EXTRARES,
"Url=/images/4.swf", "Referer=", ENDITEM,
"Url=/images/baner3.jpg", "Referer=http://www.gyt56.com/client/index_owner.aspx", ENDITEM,
"Url=/images/obj_menu.gif", "Referer=http://www.gyt56.com/client/index_owner.aspx", ENDITEM,
"Url=/images/obj_menu_02.gif", "Referer=http://www.gyt56.com/client/index_owner.aspx", ENDITEM,
"Url=/images/hzhb-bj.jpg", "Referer=http://www.gyt56.com/client/index_owner.aspx", ENDITEM,
"Url=/images/top_bg_grow.gif", "Referer=http://www.gyt56.com/client/index_owner.aspx", ENDITEM,
"Url=/images/bg_bule2.gif", "Referer=http://www.gyt56.com/client/index_owner.aspx", ENDITEM,
"Url=/images/bg_blue.gif", "Referer=http://www.gyt56.com/client/index_owner.aspx", ENDITEM,
LAST);
web_link("当前库存",
"Text=当前库存",
"Snapshot=t3.inf",
EXTRARES,
"Url=../images/4.swf", "Referer=", ENDITEM,
"Url=../images/baner3.jpg", ENDITEM,
"Url=../images/obj_menu.gif", ENDITEM,
LAST);
web_submit_form("owner_curstore.aspx",
"Snapshot=t4.inf",
ITEMDATA,
"Name=ck", "Value=仓储中心六号库", ENDITEM,
"Name=pz", "Value=所有品种", ENDITEM,
"Name=gz", "Value=", ENDITEM,
"Name=cd", "Value=所有产地", ENDITEM,
"Name=gg", "Value=", ENDITEM,
"Name=hz", "Value=宝钢钢贸", ENDITEM,
"Name=dd1", "Value=开始查询", ENDITEM,
EXTRARES,
"Url=../images/4.swf", "Referer=", ENDITEM,
"Url=../images/top_bg_grow.gif", ENDITEM,
"Url=../images/baner3.jpg", ENDITEM,
"Url=../images/bg_blue.gif", ENDITEM,
"Url=../images/obj_menu_02.gif", ENDITEM,
"Url=../images/bg_etc.gif", ENDITEM,
"Url=../images/hzhb-bj.jpg", ENDITEM,
"Url=../images/obj_menu.gif", ENDITEM,
"Url=../images/bg_bule2.gif", ENDITEM,
"Url=../images/bt_08_on.gif", ENDITEM,
LAST);
web_link("【查看】",
"Text=【查看】",
"Ordinal=2",
"Snapshot=t5.inf",
LAST);
web_link("5A13152100",
"Text=5A13152100",
"Snapshot=t6.inf",
EXTRARES,
"Url=../images/top_bg_grow.gif", "Referer=http://www.gyt56.com/client/goodsdetail.aspx?ck=baotie6&no=GOODS215", ENDITEM,
LAST);
lr_think_time( 15 );
web_link("退出",
"Text=退出",
"Ordinal=1",
"Snapshot=t7.inf",
EXTRARES,
"Url=/images/5.swf", "Referer=", ENDITEM,
"Url=/images/TOP.swf", "Referer=", ENDITEM,
LAST);
return 0;
} |
|