Jump to content

Help with FF.au3 problem


 Share

Go to solution Solved by Danp2,

Recommended Posts

I try to run the example script

#Include <FF.au3>

_FFStart("http://ff-au3-example.thorsten-willert.de/")

If _FFIsConnected() Then
    Sleep(2000)
    _FFAction("presentationmode", True)
    Sleep(2000)
    _FFOpenURL("http://www.google.com")
    Sleep(2000)
    _FFAction("back")
    _FFAction("presentationmode", False)
    Sleep(2000)
    _FFOpenURL("chrome:bookmarks")
    Sleep(2000)
    _FFAction("alert", "Bye bye ...")
    _FFQuit()
EndIf

And console output:

>Running AU3Check (3.3.12.0)  from:C:Program FilesAutoIt3  input:C:1.au3
! Au3check doesn't support input files encoded as UTF8 with BOM: C:\Program Files\AutoIt3\Include\FF.au3
"C:1.au3"(3,54) : error: _FFStart(): undefined function.

_FFStart("http://ff-au3-example.thorsten-willert.de/")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:1.au3"(5,19) : error: _FFIsConnected(): undefined function.
If _FFIsConnected()
~~~~~~~~~~~~~~~~~~^
"C:1.au3"(7,36) : error: _FFAction(): undefined function.
    _FFAction("presentationmode", True)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:1.au3"(9,36) : error: _FFOpenURL(): undefined function.
    _FFOpenURL("http://www.google.com")
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"C:1.au3"(17,10) : error: _FFQuit(): undefined function.
    _FFQuit()
    ~~~~~~~~^
C:1.au3 - 6 error(s), 0 warning(s)

 

how to solve this? Thanks
 

Link to comment
Share on other sites

Did you start MozRepl?

Also

If _FFIsConnected() = 1 Then
Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

I change the coding method for FF.au3. new error pop up:

__FFStartProcess ==> General Error: Error reading registry entry for FireFox.
HKEY_LOCAL_MACHINESOFTWAREMozillaMozilla Firefox*CurrentVersion*MainPathToExe
Error from RegRead: 1
_FFConnect: Delay:     2ms
_FFConnect: Socket:     1532
_FFConnect: Browser:    Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Firefox/24.0
__FFSendJavaScripts: Sending functions to FireFox .......... done
_FFLoadWait: . loaded in 10ms
[object XrayWrapper [object HTMLDocument]] - {location: {...}, global-zeroclipboard-flash-bridge: function() {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, ...}
__FFSend: try{FFau3 != null?1:0}catch(e){'_FFCmd_Err';};
__FFRecv: 1
__FFSend: try{toggleAffectedChrome(true)
fullScreen=true}catch(e){'_FFCmd_Err';};
__FFRecv: _FFCmd_Err
_FFOpenURL: http://www.163.com
__FFSend: try{window.content.top.document.location.href='http://www.163.com'}catch(e){'_FFCmd_Err';};
__FFRecv: http://www.163.com
_FFLoadWait: ..
__FFWaitForRepl ==> Error TCPSend / TCPRecv: TCPRecv :-1

I started MozRepl and "activate on startup/allow outside connection" are checked.

Link to comment
Share on other sites

Danp2 is correct @linbin

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

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...