登陆淘宝或啊里妈妈,用POST登陆不了,只能就IE操作模拟登陆了。
但登陆成功要用什么方式获取cookie呢?
查了很多资料都没答案,待高手解答。三克油,三克油#include <GUIConstantsEx.au3>
#include <IE.au3>
$iuio = False
Global $TimeoPic = 10000
Local $YEAR = @YEAR & '-' & @MON & '-' & @MDAY
_IEErrorHandlerRegister()
Local $oIE = _IECreateEmbedded()
$Form1_1 = GUICreate("Form1", 300, 200)
$CreateObj = GUICtrlCreateObj($oIE, 0, 0, 300, 200)
;GUISetState(@SW_SHOW)
$sUrl = "https://login.taobao.com/member/login.jhtml?style=minisimple&from=alimama&redirectURL=http%3A%2F%2Flogin.taobao.com%2Fmember%2Ftaobaoke%2Flogin.htm%3Fis_login%3d1&full_redirect=true&disableQuickLogin=true"
_IENavigate($oIE, $sUrl, 1)
Local $oForm = _IEFormGetObjByName($oIE, 0)
Local $oQuery = _IEFormElementGetObjByName($oForm, "TPL_username")
_IEFormElementSetValue($oQuery, "...");你的淘宝帐号名
Local $oQuery = _IEFormElementGetObjByName($oForm, "TPL_password")
_IEFormElementSetValue($oQuery, "...");你的淘宝帐号密码
_IEFormSubmit($oForm, 0)
GUISetState(@SW_SHOW)
;MsgBox(0,'',$IEhttp)
$r = 1
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|