Sign in to follow this  
Followers 0
Rickname

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

7 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

I see the same thing. Try this:

#include <FF.au3>
_FFStart("http://www.youtube.com")

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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
1 person likes this

Share this post


Link to post
Share on other sites

Thankyou Gonnosuke :)

So the final solution is this :

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

_FFWindowSelect()

The other sol with WindowOpen doesn't work !

Share this post


Link to post
Share on other sites

FWIW, just posted an update over in the FF.au3 thread that should address the issue with _FFWindowGetHandle returning an empty handle.

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Similar Content

    • BlazerV60
      By BlazerV60
      Hello all,
      I've written the code below which launches chrome in incognito mode and then proceeds to go to the autoit website.
      From my understanding, the Run() command is also supposed to output the PID number related to the application that got launched from the Run command.
      However when I run the below lines, it outputs a PID number that is different from the newly launched chrome browser's PID number, does anyone know why and possibly explain how I could retrieve the accurate PID number associated with the newly launched browser?
      Global $iPid = Run(@ComSpec & ' /c start chrome.exe https://www.autoitscript.com/forum/ -incognito' ,"", "") msgbox(0,"",$iPid) Thank you,
      Brian
    • BlazerV60
      By BlazerV60
      Hello all,
      I've been trying to figure out how to launch Google Chrome in the background (hidden) but it doesn't seem possible. I've tried the following methods:
      ShellExecute("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", "", "", "", @SW_HIDE) Also I've tried:
      ShellExecute(@ComSpec, "/c start chrome.exe","","",@SW_HIDE) Lastly I tried:
      RunWait('"'&@ProgramFilesDir&'\Google\Chrome\Application\chrome.exe" --silent-launch',@ScriptDir)  
      But all of them launch my chrome browser without hiding it. Does anyone know a workaround for this or if AutoIT just can't Chrome? 
      Bonus points if you know how to make it launch chrome hidden and make it go to https://www.autoitscript.com
       
      Thank you,
      Brian
    • BOUNCER
      By BOUNCER
      I'm trying to get the output data from https://www.guilded.gg but it uses a web app that generates that output on the fly and this doesn't show up in the page source.
      Only in web inspector of each browser does this data show up. How do I read this data in autoit (equivalent to the web inspector)
       
      thank you
    • ur
      By ur
      We can select elements in IE using their IDs as below.
      Local $oDiv = _IEGetObjById($oIE, "x-auto-16-input") But to one button in the webpage, there is no ID to it.
      In selenium we have option to select this element using the CssSelector and clicked the button using below code in c# selenium.
      driver.FindElement(By.CssSelector("button.x-btn-text")).Click(); What is the alternative for this in AUtoIT?