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

如何调用内嵌网页的自定义链接

[复制链接]
发表于 2009-1-14 13:14:18 | 显示全部楼层 |阅读模式
如题,调用内嵌网页的自定义链接,例如链接为 a href="Test" ,有没有办法调用到,谢谢
发表于 2009-1-14 13:18:52 | 显示全部楼层
不知道你要干嘛
_IELinkClick系列对是否内嵌的网页都可以点击
 楼主| 发表于 2009-1-14 13:27:27 | 显示全部楼层
链接的图片ID或者名称知道
 楼主| 发表于 2009-1-14 13:29:59 | 显示全部楼层
原帖由 sxd 于 2009-1-14 13:18 发表
不知道你要干嘛
_IELinkClick系列对是否内嵌的网页都可以点击



这个是需要自己创建一个IE句柄才能用吧,我的是通过调用程序,打开的界面中包含内嵌网页。需要调用其中的内容,
如果有鼠标定位的方式适应性不好。才想知道能不能直接调用链接的模式
发表于 2009-1-14 13:32:30 | 显示全部楼层
那就先 _IEAttach 获取 对ie对象
 楼主| 发表于 2009-1-14 17:30:06 | 显示全部楼层
好象不行,老是返回--> IE.au3 V2.3-1 Warning from function _IEAttach, $_IEStatus_NoMatch
几种匹配模式都试过。TEXT和HTML模式差不多吧。
类似于DELPHI的FORM中嵌入WEBBROWSER,如果可以取到,能否具体说明一下,谢谢
发表于 2009-1-14 17:46:05 | 显示全部楼层
Embedded模式可以么
发表于 2009-1-14 20:41:30 | 显示全部楼层
delphi里面内嵌的ie browser可以用
_IEAttach ( $s_string [, $s_mode = "Title" [, $i_instance = 1]] )的DialogBox 模式,可以用"AutoIt Window Info" 查看是否有"Internet Explorer_Server“控件。

_IEAttach provides the "dialogbox" parameter to attach to modal and modeless dialogs created by the browser. It is important to note that not all dialogs created through browser interaction can be attached to and controlled in this way. Many of these dialogs are actually standard windows and can be controlled through the traditional AutoIt window functions. A reliable way to tell the difference between these types of windows is to use the "AutoIt Window Info" tool to examine it -- if the window contains a control called "Internet Explorer_Server" then you can attach to it with this function, if it does not it is a standard window and traditional AutoIt windows functions must be used to control it.
发表于 2009-1-17 00:46:14 | 显示全部楼层
直接修改里边的JS。
 楼主| 发表于 2009-1-17 16:47:55 | 显示全部楼层
原帖由 sxd 于 2009-1-14 17:46 发表
Embedded模式可以么

解决了,谢谢
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-21 01:12 , Processed in 0.080624 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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