找回密码
 加入
搜索
查看: 3929|回复: 11

[IE类操作] 请教:临时邮箱中的倒计时怎样获取,谢谢!(已解决)

  [复制链接]
发表于 2011-9-18 15:29:47 | 显示全部楼层 |阅读模式
本帖最后由 lsszmj 于 2011-9-19 13:31 编辑

这个网址http://mail.dns123.org/的截图。

请各位大大给点帮助!谢谢!

正解:2#,3#。特别感谢各位大大!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2011-9-18 19:04:27 | 显示全部楼层
#include <IE.au3>

Local $sURL = "http://mail.dns123.org/"
; Local $oIE = _IEAttach($sURL, "URL")
Local $oIE = _IECreate($sURL, 1, 1, 1)

Local $sHTMLText = _IEBodyReadHTML($oIE)
Local $sTimeRemain = StringRegExp($sHTMLText, "(?U)jQuery.+>(.+)<", 3)

If IsArray($sTimeRemain) Then
        MsgBox(0, "Time remain", $sTimeRemain[0])
EndIf
发表于 2011-9-18 20:05:33 | 显示全部楼层
本帖最后由 gzh888666 于 2011-9-18 20:08 编辑
#include <IE.au3>
Local $sURL = "http://mail.dns123.org/"
;Local $oIE = _IEAttach($sURL, "URL")
Local $oIE = _IECreate($sURL, 1, 1, 1)
Do
        Local $sHTMLText = _IEBodyReadHTML($oIE)
        Local $sTimeRemain = StringRegExp($sHTMLText, "(?U)jQuery.+>(.+)<", 3)
        TrayTip("提示", "剩余时间:" & $sTimeRemain[0], 5, 1 + 16)
        Sleep(1000)
Until $sTimeRemain[0] = "0秒" 
 楼主| 发表于 2011-9-18 20:24:44 | 显示全部楼层
测试无效!
 楼主| 发表于 2011-9-18 20:24:48 | 显示全部楼层
测试无效!
发表于 2011-9-18 20:48:04 | 显示全部楼层
#include <IE.au3> 
$oIE = _IECreate ("http://mail.dns123.org/",1,1,1,0)

$str=StringRegExp(_IEBodyReadText($oIE),"(?s)您的邮件地址将在(\d+分)*(\d+秒)以后失效",3)
MsgBox(4096,"",$str[0] &$str[1],0)
 楼主| 发表于 2011-9-18 21:12:14 | 显示全部楼层
回复 6# kevinch
MsgBox(4096,"",$str[0] &$str[1],0)
MsgBox(4096,"",$str^ ERROR
发表于 2011-9-18 21:14:54 | 显示全部楼层
回复 5# lsszmj
我这里测试正常呀!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2011-9-18 21:28:33 | 显示全部楼层
回复 7# lsszmj
非IE浏览器?
发表于 2011-9-18 21:35:54 | 显示全部楼层
回复 3# gzh888666


    风雪哥厉害呀!这么快就精通正则呀!
前两天看到你还在学正则的!
发表于 2011-9-18 22:01:52 | 显示全部楼层
回复 10# hzxymkb

抄P版的!
发表于 2011-9-18 22:04:41 | 显示全部楼层
回复 11# gzh888666

不想抄的吧!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-10-1 15:20 , Processed in 0.093714 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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