|
默认窗口是最大化的,此时如果网页内容比较多,则会出现滚动条
但是窗口化后却没有滚动条了,要怎么设置呢?
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include<ie.au3>
Example()
Func Example()
Local $oIE, $GUIActiveX, $msg
$oIE = ObjCreate("Shell.Explorer.2")
GUICreate("Google", 800, 600, 0, 0, $WS_OVERLAPPEDWINDOW)
$GUIActiveX = GUICtrlCreateObj ($oIE, 0, 0, @DesktopWidth, @DesktopHeight-62)
WinSetState ("", "", @SW_MAXIMIZE)
GUISetState()
$oIE.navigate("http://www.google.com")
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
EndSelect
WEnd
GUIDelete()
EndFunc |
|