autoit3 ie.au3 函数之——_IEBodyReadHTML、_IEBodyWriteHTML
来源:互联网 发布:java读取文件并写入 编辑:程序博客网 时间:2024/06/06 06:30
_IEBodyReadHTML : Returns the HTML inside the <body> tag of the document.
即:返回文档内 <body> 标签内的HTML代码
#include <IE.au3>
_IEBodyReadHTML ( ByRef $o_object )
例子: 提取已知网页代码, 并进行修改。
#include <IE.au3>
$oIE = _IECreate ("basic")
$sHTML = _IEBodyReadHTML ($oIE)
$sHTML = $sHTML & "<p><font color=red size=+5>Big RED text!</font>"
_IEBodyWriteHTML ($oIE, $sHTML)
_IEBodyWriteHTML:Replaces the HTML inside the <body> tag of the document.
即: 替换文档内 <body> 标签内的HTML代码.
#include <IE.au3>
_IEBodyWriteHTML ( ByRef $o_object, $s_html )
Parameters
$o_objectObject variable of an InternetExplorer.Application, Window or Frame object$s_htmlThe HTML string to write to the document例子:重写已知代码
#include <IE.au3>
$oIE = _IE_Example ("iframe")
$oFrame = _IEFrameGetObjByName ($oIE, "iFrameTwo")
_IEBodyWriteHTML ($oFrame, "Hello <b>iFrame!</b>")
- autoit3 ie.au3 函数之——_IEBodyReadHTML、_IEBodyWriteHTML
- autoit3 ie.au3 函数之——_IE_Example、_IE_Introduction
- autoit3 ie.au3 函数之——_IE_VersionInfo
- autoit3 ie.au3 函数之——_IEAction
- autoit3 ie.au3 函数之——_IEGetObjById、_IEGetObjByName
- autoit3 ie.au3 函数之——_IEAttach
- autoit3 ie.au3 函数之——_IEBodyReadText
- autoit3 ie.au3 函数之——_IECreate
- autoit3 ie.au3 函数之——_IECreateEmbedded
- autoit3 ie.au3 函数之——_IEDocGetObj
- autoit3 ie.au3 函数之——_IEDocInsertHTML
- autoit3 ie.au3 函数之——_IEDocWriteHTML
- autoit3 ie.au3 函数之——_IEErrorHandlerDeRegister & _IEErrorHandlerRegister
- autoit3 ie.au3 函数之——_IEErrorNotify
- autoit3 ie.au3 函数之——_IEFormElementCheckBoxSelect & _IEFormGetObjByName
- autoit3 ie.au3 函数之——_IEFormElementGetCollection & _IEFormGetCollection
- autoit3 ie.au3 函数之——ControlClick
- autoit3 ie.au3 函数之——_FileWriteLog日志
- 网站美工面试题:DIV+CSS最有可能遇到的八个问题
- 总结了润乾报表的查询标签属性~~希望能帮助大家
- 不要以为学java,.net或VB的就很牛
- Webkit内核探究【1】——Webkit简介
- Java 中 Vector的用法
- autoit3 ie.au3 函数之——_IEBodyReadHTML、_IEBodyWriteHTML
- 失望苦闷 喝一杯乌龙茶
- JS用ActiveXObject调用本地EXE,再执行虚拟按键
- VisualSVN Server的配置和使用方法 图文
- struts配置文件传参注意
- Webkit内核探究【2】——Webkit CSS实现
- 周末在家干什么?aiwi体感游戏让你轻松度假
- 如何取得所选字体中指定字符串的高度和宽度 并 使用
- executeUpdate(字符串变量)写入数据库时遇到的bad_alloc异常