我写了一个比较笨的方法,楼主可以尝试#include <IE.au3>
$URL = "http://blog.sina.com.cn/guodegang"
$oIE = _IECreate($URL)
Sleep(10000)
$content = _IEBodyReadText($oIE)
$index1 = StringInStr($content,"博客访问:")
$index2 = StringInStr($content,"关注人气")
$str = StringMid($content,$index1+5,$index2 - $index1 - 5)
$str = StringReplace($str,",","")
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $str = ' & $str & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
$AcessNum = Number($str)
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $AcessNum = ' & $AcessNum & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
If $AcessNum > 18000000 Then
_ScreenCapture_Capture(@MyDocumentsDir & "\image.jpg")
MsgBox(0,"SaveImage","图片保存在:" & @MyDocumentsDir & "\image.jpg");
EndIf
_IEAction($oIE,"quit")
|