请问用$oIE如何只显示ie的中间部分?[已解决]
本帖最后由 mtvtop 于 2011-12-3 00:25 编辑请问用$oIE如何只显示ie的注册的中间部分?#include <IE.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Dim $oIE
Func _go()
_IENavigate($oIE, "http://reg.email.163.com/mailregAll/reg0.jsp?from=126mail")
EndFunc ;==>_go
$Form1 = GUICreate("Form1", 802, 548, 192, 124)
$Group1 = GUICtrlCreateGroup("126邮箱注册", 8, 8, 633, 529)
$oIE = _IECreateEmbedded()
$GUIActiveX = GUICtrlCreateObj($oIE, 15, 30, 615, 500)
GUICtrlSetFont(-1, 9, 400, 0, "宋体")
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("开始", 648, 130, 63, 25)
$Button2 = GUICtrlCreateButton("刷新", 728, 130, 65, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_go()
EndSwitch
WEnd
求高手帮助 $GUIActiveX = GUICtrlCreateObj($oIE, 15, 30, 615, 500)
这个地方的坐标用负数试试...
论坛中好像有人讲到过这个方法!... 详细看一下 手册... 看了帮助,没有看懂!能不能给我个实例?谢谢 我测试过了,可以达到效果,但还是不好看,就能不就只显示我需要显示的部分,其他的不显示?
就像HTML语言里的ifrom和div这样?有没有更好的解决方法 #include <IE.au3>
$Form1 = GUICreate("Form1", 802, 548, 192, 124)
$Group1 = GUICtrlCreateGroup("126邮箱注册", 8, 8, 633, 529)
$oIE = _IECreateEmbedded()
$GUIActiveX = GUICtrlCreateObj($oIE, 15, 30, 615, 500)
_IENavigate($oIE, 'about:blank')
GUICtrlSetFont(-1, 9, 400, 0, "宋体")
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("开始", 648, 130, 63, 25)
$Button2 = GUICtrlCreateButton("刷新", 728, 130, 65, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
Case $Button1
_go()
EndSwitch
WEnd
Func _go()
_IEBodyWriteHTML($oIE, '<html><iframe name="I1" width="780" vspace="-150" hspace="-200" align="middle" height="500" scrolling="no" border="0" frameborder="0" src=http://reg.email.163.com/mailregAll/reg0.jsp?from=126mail></iframe></html>')
EndFunc ;==>_go 多看帮助,多测试。 7楼好办法用iframe 厉害,我是想自己写一个 html在调用,4楼厉害呀
页:
[1]