lele9013 发表于 2010-8-13 05:14:26

ie类的一个问题。

#include <IE.au3>



$oIE = _IECreate("http://www.autoitscript.com")

$oLinks = _IELinkGetCollection($oIE)

For $oLink in $oLinks

    $sLinkId = _IEPropertyGet($oLink, "uniqueid")

    _IEHeadInsertEventScript($oIE, $sLinkId, "onclick", "return false;")

    ObjEvent($oLink, "_Evt_")

Next



While 1

      Sleep(100)

WEnd



Func _Evt_onClick()

    Local $o_link = @COM_EventObj

      ConsoleWrite($o_link.href & @CRLF)

EndFunc



我在调试的时候在 sciet 里可以记录 链接地址

可换成 msgbox 或 FileWriteLine 却不能把地址记录 请问为什么

republican 发表于 2010-8-13 06:48:30

我用的话没问题啊.

lele9013 发表于 2010-8-13 18:55:15

恩 你是调试的吧 但你编译后运行。。就错了

republican 发表于 2010-8-13 20:48:21

回复 3# lele9013

没问题啊...

lele9013 发表于 2010-8-15 17:46:12

我确实用了 不行 你自己试试看啦

lele9013 发表于 2010-8-22 18:49:13

还是这个问题

xnvnx 发表于 2010-8-29 19:05:23

顶贴、回帖、学习,拿分、走人!url
页: [1]
查看完整版本: ie类的一个问题。