yt5588 发表于 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")

lynfr8 发表于 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?
楼主试试在那个图片按钮右键看属性...

yt5588 发表于 2010-7-11 22:27:07

谢谢,又学到好用的一招
页: [1]
查看完整版本: [已解决]这个网站上的按钮怎么点?