如何获取 AU3内嵌IE 所开网站的标题,和如何保存网页为mht格式?[已解决]
本帖最后由 病毒专收员 于 2011-3-24 14:47 编辑#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <INet.au3>
#include <IE.au3>
_IEErrorHandlerRegister ()
$oIE = _IECreateEmbedded ()
GUICreate("", 551, 581, _
(@DesktopWidth - 551) / 2, (@DesktopHeight - 581) / 2, _
$WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 549, 347) ;, 0, 0, 549, 347) 10, 40, 600, 360
$GUI_Button_Back = GUICtrlCreateButton("Back", 2, 356, 100, 30)
$GUI_Button_Forward = GUICtrlCreateButton("Forward", 112, 356, 100, 30)
$GUI_Button_Home = GUICtrlCreateButton("Home", 222, 356, 100, 30)
$GUI_Button_Stop = GUICtrlCreateButton("Stop", 332, 356, 100, 30)
GUISetState() ;Show GUI
_IENavigate ($oIE, "www.autoitx.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, "www.autoitx.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 {:face (319):} 自己顶上去,看有没有人帮下忙! 第一个问题顺手顺回下_IEPropertyGet($oIE,"locationname"))第二个交给其它人了 ControlClick ( "标题", "文本", 控件ID [, 按钮 [, 点击次数 [, X坐标 [, Y坐标 ]]]] ) 回复 3# ceoguang
{:face (356):} 就是这个了哈。感谢感谢。 回复 4# lynfr8
可否详细说明下呀,内嵌IE开的网站没有保存的选项! 回复lynfr8
可否详细说明下呀,内嵌IE开的网站没有保存的选项!
病毒专收员 发表于 2010-7-30 12:24 http://www.autoitx.com/images/common/back.gif
http://www.autoitx.com/forum.php?mod=viewthread&tid=30540&rpid=401645&ordertype=0&page=1#pid401645
页:
[1]