Jump to content

FF.au3 error :( - and can't manage to do it :(


Go to solution Solved by Gonnosuke,

Recommended Posts

I downloaded FF.au3 , installed MozRepl, started it, put 4242 as port in it, then when Im trying to run this simple script :

#include "FF.au3"
_FFConnect(default,Default,6000)

_FFWindowOpen("http://www.youtube.com", True, True)

The thing is, it actually works, but it is still gives me a very annoying error :

 

_FFConnect: OS:    WIN_7 WIN32_NT 7601 Service Pack 1
_FFConnect: AutoIt:    3.3.12.0
_FFConnect: FF.au3:    0.6.0.1b-10
_FFConnect: IP:    127.0.0.1
_FFConnect: Port:    4242
_FFConnect: Delay:     2ms
_FFConnect: Socket:     488
_FFConnect: Browser:    Mozilla/5.0 (Windows NT 6.1; rv:30.0) Gecko/20100101 Firefox/30.0
__FFSendJavaScripts: Sending functions to FireFox .......... done
_FFWindowOpen: http://www.youtube.com
_FFLoadWait: .
__FFWaitForRepl ==> Error TCPSend / TCPRecv: TCPRecv :-1

__FFWaitForRepl ==> Error TCPSend / TCPRecv: TCPRecv :-1
. loaded in 573ms
[object XrayWrapper [object HTMLDocument]] - {location: {...}, SWFUpload_0: function() {...}, rss_feed: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, ...}
_FFWindowGetHandle: 0x00000000
_FFWindowGetHandle ==> General Error

 

What can do ? :(

Edited by Rickname
Link to comment
Share on other sites

You may want to review the suggested changes in >this post.

 

It works partially, still the function can't retrieve the handle of the created window :

The only error that disappeared was the TCP error :/

 

_FFConnect: OS:    WIN_7 WIN32_NT 7601 Service Pack 1

_FFConnect: AutoIt:    3.3.12.0

_FFConnect: FF.au3:    0.6.0.1b-10

_FFConnect: IP:    127.0.0.1

_FFConnect: Port:    4242

_FFConnect: Delay:     2ms

_FFConnect: Socket:     488

_FFConnect: Browser:    Mozilla/5.0 (Windows NT 6.1; rv:30.0) Gecko/20100101 Firefox/30.0

__FFSendJavaScripts: Sending functions to FireFox .......... done

_FFWindowOpen: http://www.youtube.com

_FFLoadWait: . loaded in 85ms

[object XrayWrapper [object HTMLDocument]] - {location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, ...}

_FFWindowGetHandle: 0x00000000

_FFWindowGetHandle ==> General Error

__FFSendJavaScripts: Sending functions to FireFox .......... done

Edited by Rickname
Link to comment
Share on other sites

  • Solution

This is a known issue with _FFWindowOpen. It's trying to set extended with the hWnd from a FF window that isn't yet selected. It's wonky. Try the following and the final attempt to get the handle should succeed:

_FFStart("http://www.youtube.com")

_FFWindowSelect()

Or

_FFConnect(Default, 4242, 6000)
_FFWindowOpen("http://www.youtube.com", True, True)
_FFWindowSelect()

 

P.S. When you see LoadWait results like this: "_FFLoadWait: . loaded in 85ms" you can be reasonably sure it's a selection problem. MozRepl is many great things, but fast isn't one of them!

Edited by Gonnosuke
Link to comment
Share on other sites

  • 4 months later...

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

×
×
  • Create New...