fdmy 发表于 2009-1-14 13:14:18

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

如题,调用内嵌网页的自定义链接,例如链接为 a href="Test" ,有没有办法调用到,谢谢

sxd 发表于 2009-1-14 13:18:52

不知道你要干嘛
_IELinkClick系列对是否内嵌的网页都可以点击

fdmy 发表于 2009-1-14 13:27:27

链接的图片ID或者名称知道

fdmy 发表于 2009-1-14 13:29:59

原帖由 sxd 于 2009-1-14 13:18 发表 http://www.autoitx.com/images/common/back.gif
不知道你要干嘛
_IELinkClick系列对是否内嵌的网页都可以点击


这个是需要自己创建一个IE句柄才能用吧,我的是通过调用程序,打开的界面中包含内嵌网页。需要调用其中的内容,
如果有鼠标定位的方式适应性不好。才想知道能不能直接调用链接的模式

sxd 发表于 2009-1-14 13:32:30

那就先 _IEAttach 获取 对ie对象

fdmy 发表于 2009-1-14 17:30:06

好象不行,老是返回--> IE.au3 V2.3-1 Warning from function _IEAttach, $_IEStatus_NoMatch
几种匹配模式都试过。TEXT和HTML模式差不多吧。
类似于DELPHI的FORM中嵌入WEBBROWSER,如果可以取到,能否具体说明一下,谢谢

sxd 发表于 2009-1-14 17:46:05

Embedded模式可以么

markhu53 发表于 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.

sanhen 发表于 2009-1-17 00:46:14

直接修改里边的JS。

fdmy 发表于 2009-1-17 16:47:55

原帖由 sxd 于 2009-1-14 17:46 发表 http://www.autoitx.com/images/common/back.gif
Embedded模式可以么
解决了,谢谢
页: [1]
查看完整版本: 如何调用内嵌网页的自定义链接