找回密码
 加入
搜索
查看: 2489|回复: 3

[IE类操作] 如何用AU3保存某个网页到本地

[复制链接]
发表于 2011-3-8 09:15:20 | 显示全部楼层 |阅读模式
想实现用AU3吧某个网页内容保存在本地硬盘 该则么写?
发表于 2011-3-8 09:28:17 | 显示全部楼层
直接inetget就行了
发表于 2011-3-8 12:20:18 | 显示全部楼层
楼上正解,

InetGet("http://www.mozilla.org", @TempDir & "\mozilla.html")
InetGet("http://www.autoitscript.com", @TempDir & "autoitscript.html", 1)
InetGet("ftp://ftp.mozilla.org/pub/mozilla.org/README", @TempDir & "\Mozilla-README.txt", 1)

; 高级例子 - 使用后台下载
Local $hDownload = InetGet("http://www.autoitscript.com/autoit3/files/beta/update.dat", @TempDir & "\update.dat", 1, 1)
Do
    Sleep(250)
Until InetGetInfo($hDownload, 2)    ; 检查下载是否完成.
Local $nBytes = InetGetInfo($hDownload, 0)
InetClose($hDownload)   ; 关闭句柄,释放资源.
MsgBox(0, "", "字节读取: " & $nBytes)

以上是帮助里的,你也可以自己看看
 楼主| 发表于 2011-3-11 09:54:29 | 显示全部楼层
谢谢 WSFDA
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 10:41 , Processed in 0.080267 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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