本帖最后由 allspark 于 2012-9-2 16:54 编辑
现在已经可以实现自动发信了,但是卡在了如何打开收件箱的第一封邮件?
虽然可以通过网页源码获知每封邮件的id,从而单独打开!
但是当邮箱有多封信件时(图中只有一封,呵呵),怎样在不知道其id的情况下,能够打开第一封邮件?(就是每次都能直接打开第一封信)
望各位大虾不吝赐教!谢谢!#include <IE.au3>
$oIE = _IECreate("http://126.com/", 0, 1, 1, 1)
_IELoadWait($oIE)
$Ele = _IEGetObjById($oIE,"idInput")
_IEFormElementSetValue($Ele,"nahzh001")
$Ele = _IEGetObjById($oIE,"pwdInput")
_IEFormElementSetValue($Ele,"hzh86289493")
$Ele = _IEGetObjById($oIE,"remAutoLogin")
_IEAction($Ele,"click") ;点击
$Ele = _IEGetObjById($oIE,"loginBtn")
_IEAction($Ele,"click")
Sleep(1000)
$oFrame = _IEFrameGetCollection($oIE, 0) ;~ $oFrame = _IEFrameGetObjByName($oIE,"index") ;获取frame的dom对象 2个等价的
;~ _IENavigate($oIE, _IEPropertyGet ($oFrame, "locationurl"));地址
_IELinkClickByText($oFrame,"写信")
Sleep(1000)
$Ele = _IEGetObjById($oFrame,"objComposeSubject")
$Ele.value="测试主题....."
$Ele = _IETagNameGetCollection($oFrame,"INPUT",3)
$Ele.value="hdj20030403@126.com"
_IELinkClickByText($oFrame,"发 送")
Sleep(1000)
_IELinkClickByText($oFrame,"收信")
|