|
楼主 |
发表于 2015-5-25 16:30:38
|
显示全部楼层
嘿嘿,来了,来了,本人也不是非常懂,所以多测试了几天,百度那个按钮估计不是标准的LINK吧,只能用模拟的 ...
penguinl 发表于 2015-5-16 01:13
#include <IE.au3>
#include <WindowsConstants.au3>
Local $oIE = _IECreate("https://passport.baidu.com/v2/?login&u=http://wenku.baidu.com/task/browse/task?tab=1&fr=shouye")
_IELoadWait($oIE)
Sleep(2000)
$oIE.document.getElementById("TANGRAM__PSP_3__userName").value ="用户名"
Sleep(2000)
$oIE.document.getElementById("TANGRAM__PSP_3__password").value ="密码"
Sleep(2000)
$oIE.document.getElementById("TANGRAM__PSP_3__memberPass").click()
Sleep(2000)
$oIE.document.getElementById("TANGRAM__PSP_3__submit").click()
Sleep(4000)
_IEQuit($oIE)
Local $sURL = "http://wenku.baidu.com/task/browse/daily"
Local $hWnd = GUICreate("IE Embedded Windows", 1105, 796, 0, 0, BitOR($WS_SYSMENU, $WS_CAPTION, $WS_POPUP))
Local $oIE = _IECreateEmbedded()
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 1105, 796)
GUISetState()
_IENavigate($oIE, $sURL, 1)
Sleep(2*2000)
Opt("MouseCoordMode", 0)
MouseClick("left", 864,400)
Sleep(3*1000)
Exit
你说的那种还是不会啊,就只有这种笨办法了,试了也可以 |
|