linbin Posted August 12, 2014 Share Posted August 12, 2014 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 More sharing options...
MikahS Posted August 12, 2014 Share Posted August 12, 2014 (edited) Did you start MozRepl? Also If _FFIsConnected() = 1 Then Edited August 12, 2014 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy 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 More sharing options...
linbin Posted August 12, 2014 Author Share Posted August 12, 2014 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 More sharing options...
Solution Danp2 Posted August 12, 2014 Solution Share Posted August 12, 2014 Read the main FF.au3 thread and implement the fixes from there to address these issues (__FFStartProcess and TCPRecv errors). linbin 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
MikahS Posted August 12, 2014 Share Posted August 12, 2014 Danp2 is correct @linbin Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy 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 More sharing options...
linbin Posted August 13, 2014 Author Share Posted August 13, 2014 @Danp2 thanks it works. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now