走了弯路了
The au3 Code:关于插件打印代码保存代码复制代码普通浏览
- #include <GUIConstantsEx.au3>
- #include <WindowsConstants.au3>
- #include <IE.au3>
-
- $sURL ="http://www.weather-forecasting.cn/shanghai/ShangHai.htm"
- $oIE = _IECreateEmbedded()
- $GUI = GUICreate("Embedded Web control Test", 734, 160, Default, Default)
- $GUIActiveX = GUICtrlCreateObj($oIE, -11, -16, 756, 230)
- _IEAction($oIE, "disable")
- _IENavigate($oIE, $sURL)
- $oTable = _IETableGetCollection ($oIE, 1)
- $oTableheight = _IEPropertyGet ($oTable,"height")
- $oTablewidth = _IEPropertyGet ($oTable,"width")
- $oTableHtml = StringReplace(_IEPropertyGet ($oTable,"outerhtml"),'"../','"http://www.weather-forecasting.cn/')
- _IEDocWriteHTML ($oIE, $oTableHtml)
- $oIE.document.body.scroll = "no"
- GUISetState()
-
- While 1
- $msg = GUIGetMsg()
- Select
- Case $msg = $GUI_EVENT_CLOSE
- ExitLoop
- EndSelect
- WEnd
-
- GUIDelete()
-
- Exit
#include <GUIConstantsEx.au3><br />#include <WindowsConstants.au3><br />#include <IE.au3><br /><br />$sURL ="http://www.weather-forecasting.cn/shanghai/ShangHai.htm"<br />$oIE = _IECreateEmbedded()<br />$GUI = GUICreate("Embedded Web control Test", 734, 160, Default, Default)<br />$GUIActiveX = GUICtrlCreateObj($oIE, -11, -16, 756, 230)<br />_IEAction($oIE, "disable")<br />_IENavigate($oIE, $sURL)<br />$oTable = _IETableGetCollection ($oIE, 1)<br />$oTableheight = _IEPropertyGet ($oTable,"height")<br />$oTablewidth = _IEPropertyGet ($oTable,"width")<br />$oTableHtml = StringReplace(_IEPropertyGet ($oTable,"outerhtml"),'"../','"http://www.weather-forecasting.cn/')<br />_IEDocWriteHTML ($oIE, $oTableHtml)<br />$oIE.document.body.scroll = "no"<br />GUISetState()<br /><br />While 1<br /> $msg = GUIGetMsg()<br /> Select<br /> Case $msg = $GUI_EVENT_CLOSE<br /> ExitLoop<br /> EndSelect<br />WEnd<br /><br />GUIDelete()<br /><br />Exit
[ 本帖最后由 gooker 于 2008-8-31 13:53 编辑 ]
附件 2008-08-31_135041.png (26.34 KB) 2008-8-31 13:51
|