找回密码
 加入
搜索
查看: 4021|回复: 10

如何在AU3窗口口内显示网页内容!!

[复制链接]
发表于 2009-3-11 15:25:44 | 显示全部楼层 |阅读模式
如何在AU3窗口口内显示网页内容!!
比如说 在窗口显示这个网页
http://www.930t.com/n930/n930.asp
发表于 2009-3-11 15:43:00 | 显示全部楼层
自己看_IE...()的函数帮助文档中的例子吧

看完你不会 那我就不能说什么了
发表于 2009-3-11 16:29:28 | 显示全部楼层
看下这个函数的实例
GUICtrlCreateObj
发表于 2009-3-12 10:14:36 | 显示全部楼层
看帮助_IECreateEmbedded
发表于 2009-3-12 10:34:33 | 显示全部楼层
搜索下,论坛有例子了。善于搜索你会发现很多.
发表于 2009-3-12 11:03:16 | 显示全部楼层
; *******************************************************
; 例子 1 - 捕获COM错误,以便当"后退"和"前进"的超出历史记录的时候,能够返回而不退出代码.(希望COM错误被发送到控制台)
; *******************************************************
;
#include <GUIConstants.au3>
#include <IE.au3>

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
GUICreate("Embedded Web control Test", 640, 580, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
$GUI_Button_Back = GUICtrlCreateButton("Back", 10, 420, 100, 30)
$GUI_Button_Forward = GUICtrlCreateButton("Forward", 120, 420, 100, 30)
$GUI_Button_Home = GUICtrlCreateButton("Home", 230, 420, 100, 30)
$GUI_Button_Stop = GUICtrlCreateButton("Stop", 340, 420, 100, 30)

GUISetState()       ;Show GUI

_IENavigate ($oIE, "http://www.autoitscript.com")

; Waiting for user to close the window
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $GUI_Button_Home
            _IENavigate ($oIE, "http://www.autoitscript.com")
        Case $msg = $GUI_Button_Back
            _IEAction ($oIE, "back")
        Case $msg = $GUI_Button_Forward
            _IEAction ($oIE, "forward")
        Case $msg = $GUI_Button_Stop
            _IEAction ($oIE, "stop")
    EndSelect
WEnd

GUIDelete()

Exit
发表于 2009-4-28 10:17:27 | 显示全部楼层
不知道有沒有簡單的只保留有畫面的頁面大小的方法?
发表于 2009-4-28 13:46:33 | 显示全部楼层
_IECreateEmbedded
--------------------------------------------------------------------------------

Create a Webbrowser object suitable for embedding in an AutoIt GUI with GuiCtrlCreateObj().


#include <IE.au3>
_IECreateEmbedded ( )




参数

None.



返回值

Success: Returns a Webbrowser object reference
Failure: Returns 0 and sets @ERROR
@Error: 0 ($_IEStatus_Success) = No Error
1 ($_IEStatus_GeneralError) = General Error



注意

No actions can be performed on this object until it has been embedded into a parent application (e.g. you cannot perform an _IENavigate). Because of this restriction, the browser is not automatically navigated to 'about:blank' as is a browser created with _IECreate. You must therefore use _IENavigate to navigate this browser to 'about:blank' after it has been embedded into the parent application and before you attempt any operations that rely on having a document loaded (e.g. _IEBodyWriteHTML).

There are several properties related to an InternetExplorer object (e.g. returned by _IECreate) that do not apply to this object. These include status text, addressbar and others that may exist for a browser, but do not exist for an embedded control.

You may have object visibility issues unless you use the Windows style $WS_CLIPCHILDREN in GUICreate().

_IEQuit cannot be used with this object. The object will be destroyed when its parent GUI is destroyed.
发表于 2009-9-2 12:49:06 | 显示全部楼层
帮助文件对学习AU3很重要啊
发表于 2009-9-15 11:37:22 | 显示全部楼层
  学习一下
发表于 2009-9-16 17:58:37 | 显示全部楼层
这个好像帮助文档里面有例子啊
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-16 03:35 , Processed in 0.081048 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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