232showtime Posted July 16, 2014 Posted July 16, 2014 getting error with this example: #Include <FF.au3> ; trying to connect to a running FireFox with MozRepl on If _FFConnect(Default, Default, 3000) Then ; open a page _FFOpenURL("http://www.google.com") Sleep(3000) ; disconnect from FireFox If _FFDisConnect() Then MsgBox(64, "", "Disconnected from FireFox!") Else MsgBox(64, "", "Can't connect to FireFox!") EndIf _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 ==> Timeout: TCPConnect Error: 10061 _FFConnect ==> General Error: Timeout: Can not connect to FireFox/MozRepl on: 127.0.0.1:4242 do i need to edit the host file? or edit network settings on FF??? ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon.
Danp2 Posted July 16, 2014 Posted July 16, 2014 Do you have the MozRepl addon installed / running? Latest Webdriver UDF Release Webdriver Wiki FAQs
water Posted July 16, 2014 Posted July 16, 2014 Is MozRepl installed and activated? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
232showtime Posted July 16, 2014 Author Posted July 16, 2014 (edited) Is MozRepl installed and activated? I have mozrep add on in FF but i dont know if it is running, how do i check? edit:mozrep addon is enabled... Edited July 16, 2014 by 232showtime ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon.
Solution Danp2 Posted July 16, 2014 Solution Posted July 16, 2014 Look at the settings under the Tools > MozRepl menu. 232showtime 1 Latest Webdriver UDF Release Webdriver Wiki FAQs
water Posted July 16, 2014 Posted July 16, 2014 Which version of MozRepl do you run? 232showtime 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
232showtime Posted July 16, 2014 Author Posted July 16, 2014 its working now thanks, but do i need to start mozrep everytime I open FF??? ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon.
water Posted July 16, 2014 Posted July 16, 2014 No. I activated it once and it is running just fine now. 232showtime 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
careca Posted July 16, 2014 Posted July 16, 2014 (edited) You can always go to about:config and check for: extensions.mozrepl.autoStart = true Edited July 16, 2014 by careca Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
232showtime Posted July 16, 2014 Author Posted July 16, 2014 Thanks all... :ILA2: ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon.
Krzysztof Posted January 4, 2015 Posted January 4, 2015 (edited) I see there are a lot of troubles with FF.au3 file together with MozRepl. My situation is not an exception. By the way, if there is such situation with many similar problems and similar topics about them, is it better to create another new topic or add new problem to the old topic? (On different forums rule is different, so I ask about it). Yesterday I installed newest version of Firefox and MozRepl 1.1.2. In Menu-Add-ons on Firefox, the MozRepl is switched on. So I begun to write a simple code like this one: #include <FF.au3> _FFStart("https://www.google.com") ; Line works fine, Google are loaded. If _FFIsConnected() Then _FFOpenURL("https://www.autoitscript.com/site/") ; Nothing happens. Firefox has still Google loaded. EndIf _FFStart line works fine in every time, but any lines below are ignored, no matter there is _FFOpenURL or _FFObjGet, etc. Could You plese help me? During execution of above code I receive the following information in the window of SciTE editor: >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:UsersKrzysztofDesktopa.au3" /UserParams +>11:27:51 Starting AutoIt3Wrapper v.14.801.2025.0 SciTE v.3.4.4.0 Keyboard:00000415 OS:WIN_VISTA/Service Pack 2 CPU:X64 OS:X86 Environment(Language:0415) +> SciTEDir => C:Program FilesAutoIt3SciTE UserDir => C:UsersKrzysztofAppDataLocalAutoIt v3SciTEAutoIt3Wrapper SCITE_USERHOME => C:UsersKrzysztofAppDataLocalAutoIt v3SciTE >Running AU3Check (3.3.12.0) from:C:Program FilesAutoIt3 input:C:UsersKrzysztofDesktopa.au3 +>11:27:51 AU3Check ended.rc:0 >Running:(3.3.12.0):C:Program FilesAutoIt3autoit3.exe "C:UsersKrzysztofDesktopa.au3" --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop __FFStartProcess: ""C:Program FilesMozilla Firefoxfirefox.exe" -new-window "https://www.google.com" "-repl 4242 " _FFConnect: OS: WIN_VISTA WIN32_NT 6002 Service Pack 2 _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 Edited January 4, 2015 by Krzysztof
Danp2 Posted January 4, 2015 Posted January 4, 2015 FFIsConnected is likely returning False, so the code inside the If..Endif isn't being executed. Try this: If _FFIsConnected() Or _FFConnect(Default, Default, 3000) Then _FFOpenURL("https://www.autoitscript.com/site/") EndIf Latest Webdriver UDF Release Webdriver Wiki FAQs
Danp2 Posted January 4, 2015 Posted January 4, 2015 There's something else going on. I ran your original script and it worked fine as written. Are you sure MozRepl is running? Latest Webdriver UDF Release Webdriver Wiki FAQs
Krzysztof Posted January 4, 2015 Posted January 4, 2015 It is switched ON (I have checked it again to make sure), but I have no idea how to check if it is running.
Danp2 Posted January 4, 2015 Posted January 4, 2015 You can try connecting with PuTTy or just issue the following from a cmd window: telnet localhost 4242 Latest Webdriver UDF Release Webdriver Wiki FAQs
Krzysztof Posted January 4, 2015 Posted January 4, 2015 Telnet command is not recognised on my computer. I have just downloaded and installed putty, but what have I do next with putty?
Danp2 Posted January 4, 2015 Posted January 4, 2015 Set hostname equal to either localhost or 127.0.0.1. Set port to 4242 Set connection type to Raw Latest Webdriver UDF Release Webdriver Wiki FAQs
Danp2 Posted January 5, 2015 Posted January 5, 2015 This would indicate that Mozrepl isn't installed / running. Latest Webdriver UDF Release Webdriver Wiki FAQs
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