Jump to content

FF.au3 (V0.6.0.1b-10)


Stilgar
 Share

Recommended Posts

@ Stilgar:

How would i get the url of an iframe..??

or click a button thats inside an iframe..??

Example:

#include <FF.au3>

If _FFConnect() Then
    _FFOpenURL("http://de.selfhtml.org/html/frames/anzeige/iframe.htm")
    _FFFrameEnter(0) ; change to frame 0 - now all following functions working in this frame
        MsgBox(0,"", _FFCmd(".location.href") )
        _FFLinkClick("/weblog/")
    _FFFrameLeave()
EndIf
Link to comment
Share on other sites

Example:

#include <FF.au3>

If _FFConnect() Then
    _FFOpenURL("http://de.selfhtml.org/html/frames/anzeige/iframe.htm")
    _FFFrameEnter(0) ; change to frame 0 - now all following functions working in this frame
        MsgBox(0,"", _FFCmd(".location.href") )
        _FFLinkClick("/weblog/")
    _FFFrameLeave()
EndIf

OK, so on the site im trying it on, I can enter the frame successfully, but when I try to do this: MsgBox(0,"", _FFCmd(".location.href") )

I'm getting a "_FFCmd_Err" window ..??

Is this the only way to get the URL of the iframe..??

Link to comment
Share on other sites

Example:

#include <FF.au3>

If _FFConnect() Then
    _FFOpenURL("http://de.selfhtml.org/html/frames/anzeige/iframe.htm")
    _FFFrameEnter(0) ; change to frame 0 - now all following functions working in this frame
        MsgBox(0,"", _FFCmd(".location.href") )
        _FFLinkClick("/weblog/")
    _FFFrameLeave()
EndIf

For My way with this configuration :

_FFConnect: OS: WIN_XP WIN32_NT 2600 Service Pack 3 French

_FFConnect: AutoIt: 3.3.1.5

_FFConnect: FF.au3: 0.6.0.0b-4 ; Last test version

This example works well
Link to comment
Share on other sites

Hi,

probably I am making something wrong, but _FFPrefSet is not working for me.

I have Firefox 3.5.5 with MozRepl 1.0.0.2009041717 and FF.au3 0.5.3.10b

I can use _FFLinkClick, _FFXPath and so on without any problem, but if i want to change the settings of FF with _FFPrefSet than I always get the error:

_FFPrefSet("network.proxy.http", "localhost")

__FFSend ==> Socket Error
_FFCmd ==> Error return value
_FFPrefSet ==> Invalid value: network.proxy.http

also this fails for me:

_FFPrefSet("browser.download.manager.closeWhenDone","true")
_FFPrefSet("browser.download.useDownloadDir","true")

Someone has a tipp for me?

br

devilman

EDIT

ok found the error by myself, first _FFStart("url") or _FFConnect() then its working :)

/EDIT

Edited by devilman16
Link to comment
Share on other sites

@DanP2:

Yes, I have. I tell you more if I have more time.

---

@cypher175:

Have you an example or the source of the web-page, please?

---

also this fails for me:

_FFPrefSet("browser.download.manager.closeWhenDone","true")
_FFPrefSet("browser.download.useDownloadDir","true")

You must use the the right datatypes for the prefs.

In your example you are using strings instead of boolean:

_FFPrefSet("browser.download.useDownloadDir", True)
Link to comment
Share on other sites

which function should i be looking at to get the current URL of the active tab in Firefox?

i tried _FFWindowSelect and couldn't get it to work

and where can i see the examples from these functions, can't seem to find it :S

Link to comment
Share on other sites

which function should i be looking at to get the current URL of the active tab in Firefox?

i tried _FFWindowSelect and couldn't get it to work

and where can i see the examples from these functions, can't seem to find it :S

Here you can do what you want

_FFFrameEnter('Main','name')

$url = _FFCmd('.location.href')

_FFFrameLeave()

Link to comment
Share on other sites

it doesn't work for me

#include <FF.au3>
_FFConnect()
_FFFrameEnter('Main','name')
$url = _FFCmd('.location.href')
_FFFrameLeave()
MsgBox("","",$url)

_FFFrameEnter('Main','name')

'Main" would be replace by the name of your frame

Could you give the url of your website that i test it ?

Link to comment
Share on other sites

_FFConnect: OS: WIN_XP WIN32_NT 2600 Service Pack 2
_FFConnect: AutoIt: 3.3.0.0
_FFConnect: FF.au3: 0.6.0.0b-5
_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
__FFSend ==> Socket Error
_FFCmd ==> Error return value

Link to comment
Share on other sites

_FFConnect: OS: WIN_XP WIN32_NT 2600 Service Pack 2
_FFConnect: AutoIt: 3.3.0.0
_FFConnect: FF.au3: 0.6.0.0b-5
_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
__FFSend ==> Socket Error
_FFCmd ==> Error return value

Seems like MozRepl is not activated and/or installed, or a firewall blocks the communication. Edited by Stilgar
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...