找回密码
 加入
搜索
查看: 1903|回复: 2

[IE类操作] [已解决]这个网站上的按钮怎么点?

[复制链接]
发表于 2010-7-11 09:49:12 | 显示全部楼层 |阅读模式
本帖最后由 yt5588 于 2010-7-11 22:29 编辑
#include <IE.au3>
$oIE = _IECreate ("http://www1.glhz.com/sale/index.html")
WinWait("[ 恒智电脑 ]电子商务平台II -- ewall-was3")
WinSetState("[ 恒智电脑 ]电子商务平台II -- ewall-was3","",@SW_MAXIMIZE)
$oForm = _IEFormGetObjByName ($oIE, "loginForm")
$oQuery = _IEFormElementGetObjByName ($oForm, "j_username")
_IEFormElementSetValue ($oQuery, "user")
$oQuery = _IEFormElementGetObjByName ($oForm, "j_password")
_IEFormElementSetValue ($oQuery, "1234")
_IEImgClick($oIE,"Button_080901.gif","src")
网站是:http://www1.glhz.com/sale/index.html
代码最后一行,点登录按钮点不了
_IEImgClick($oIE,"Button_080901.gif","src")
发表于 2010-7-11 20:36:41 | 显示全部楼层
#include <IE.au3>
$oIE = _IECreate ("http://www1.glhz.com/sale/index.html",0,1,1,0)
$oForm = _IEFormGetObjByName ($oIE, "loginForm")
$oQuery = _IEFormElementGetObjByName ($oForm, "j_username")
_IEFormElementSetValue ($oQuery, "user")
$oQuery = _IEFormElementGetObjByName ($oForm, "j_password")
_IEFormElementSetValue ($oQuery, "1234")
$Submit = _IEGetObjById ($oIE, "login")
$Submit.click
#include <IE.au3>
$oIE = _IECreate ("http://www1.glhz.com/sale/index.html",0,1,1,0)
$oForm = _IEFormGetObjByName ($oIE, "loginForm")
$oQuery = _IEFormElementGetObjByName ($oForm, "j_username")
_IEFormElementSetValue ($oQuery, "user")
$oQuery = _IEFormElementGetObjByName ($oForm, "j_password")
_IEFormElementSetValue ($oQuery, "1234")
$Submit = _IEGetObjById ($oIE, "loginForm")
$Submit.submit
为什么不用_IEImgClick?
楼主试试在那个图片按钮右键看属性...

评分

参与人数 1金钱 +20 收起 理由
afan + 20

查看全部评分

 楼主| 发表于 2010-7-11 22:27:07 | 显示全部楼层
谢谢,又学到好用的一招
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2025-1-12 02:55 , Processed in 0.078414 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表