关于火狐浏览器UDF的问题
我用 _FFConnect函数,怎么总是连接失败呢?以下是报错:
>"d:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "E:\AutoIt相关\AutoIt_FireFox\_Start.au3"
__FFStartProcess: ""C:\Program Files\Mozilla Firefox\firefox.exe" -new-window "http://www.google.com"-repl 4242
_FFConnect: OS: WIN_XP WIN32_NT 2600 Service Pack 3
_FFConnect: AutoIt: 3.3.6.1
_FFConnect: FF.au3: 0.6.0.1b-3
_FFConnect: IP: 127.0.0.1
_FFConnect: Port: 4242
_FFConnect: Delay: 2ms
_FFConnect ==> Timeout: TCPConnect Error: 10061
_FFConnect ==> General Error: Timeout: Can not connect to FireFox/MozRepl on: 127.0.0.1:4242
注:防火墙已经关了 自己解决了 少装了一个控制台插件 不知道如何获取一个标签名和文本 #Include <FF.au3>
;_ArrayDisplay
_FFConnect()
If _FFIsConnected() Then
_FFOpenURL("easou.com")
If _FFObjNew("easou", "window.content.document") Then
$sInput = _FFObjGet("a", "tag",0)
$a=_FFObj($sInput,"text")
MsgBox(0, "tagname", $a)
;_ArrayDisplay (_FFObj("easou","links")))
; OR
MsgBox(64, "Domain", _FFObj("easou.title"))
_FFObjDelete("easou")
EndIf
EndIf
Exit 请大家看看这样写对吗? 顶一下,没人知道吗? 顶一下下。。。
页:
[1]