找回密码
 加入
搜索
查看: 3663|回复: 9

[IE类操作] 请问用$oIE如何只显示ie的中间部分?[已解决]

  [复制链接]
发表于 2011-11-22 17:20:34 | 显示全部楼层 |阅读模式
本帖最后由 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
 楼主| 发表于 2011-11-22 21:37:58 | 显示全部楼层
求高手帮助
发表于 2011-11-22 22:28:06 | 显示全部楼层
$GUIActiveX = GUICtrlCreateObj($oIE, 15, 30, 615, 500)

这个地方的坐标用负数试试...

论坛中好像有人讲到过这个方法!...
发表于 2011-11-22 22:28:38 | 显示全部楼层
详细看一下 手册...
 楼主| 发表于 2011-11-22 22:47:25 | 显示全部楼层
看了帮助,没有看懂!能不能给我个实例?谢谢
 楼主| 发表于 2011-11-22 23:06:28 | 显示全部楼层
我测试过了,可以达到效果,但还是不好看,就能不就只显示我需要显示的部分,其他的不显示?
就像HTML语言里的ifrom和div这样?有没有更好的解决方法
发表于 2011-11-22 23:31:23 | 显示全部楼层
#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
发表于 2011-11-23 00:03:31 | 显示全部楼层
多看帮助,多测试。
发表于 2011-11-23 00:13:26 | 显示全部楼层
7楼好办法  用iframe
 楼主| 发表于 2011-11-23 00:23:44 | 显示全部楼层
厉害,我是想自己写一个 html在调用,4楼厉害呀
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-13 13:05 , Processed in 0.089470 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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