Jump to content

Recommended Posts

Posted
2 hours ago, Danp2 said:

It shouldn't matter whether you are using a regular or portable version of Firefox as long as the MozRepl plugin is installed and running.

What version of FF are you running where MozRepl is still supported?

I use firefox 55.0.2 (64bit)

So What version firefox should I use ? 

Thank you

 

 

Posted
I tried using firefox 52 and 50. But the _FFStart function does not automatically open a website like IECreate. Why it does not work? Was this function broken?

 
Posted

Sorry,

Im using firefox portable 50.0 

My simple code is :

#Include <ff.au3>
 _FFStart("http://abc.com")

Then it show me error as follows:

__FFStartProcess ==> General Error: Error reading registry entry for FireFox.
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Mozilla Firefox\*CurrentVersion*\Main\PathToExe
Error from RegRead: 1
_FFConnect: OS:    WIN_7 WIN32_NT 7601 Service Pack 1
_FFConnect: AutoIt:    3.3.14.5
_FFConnect: FF.au3:    0.6.0.2b
_FFConnect: IP:    127.0.0.1
_FFConnect: Port:    4242
_FFConnect: Delay:     2ms
_FFConnect: Socket:     536
_FFConnect: Browser:    Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:50.0) Gecko/20100101 Firefox/50.0
__FFSendJavaScripts: Sending functions to FireFox .......... done
_FFLoadWait: . loaded in 15ms
[object HTMLDocument] - {location: {...}, getElementsByName: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, writeln: function() {...}, execCommand: function() {...}, ...}
+>02:56:56 AutoIt3.exe ended.rc:0
+>02:56:56 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 2.27

I don't understand about that. Help me...

Posted

I see the problem in ff.au3 

Func __FFStartProcess($sURL = "about:blank", $bNewWin = False, $sProfile = "default", $bNoRemote = False, $bHide = False, $iPort = 4242, $iTimeOut = 30000)
    Local Const $sFuncName = "__FFStartProcess"
        Local $PID = -1
    Local $sNoRemote = "", $sNewWin
    Local $sProcName = $_FF_PROC_NAME
        If $sProfile = "default" Then
        $sProfile = ''
    Else
        $sProfile = ' -P "' & $sProfile & '"'
    EndIf
    If $bNoRemote Then $sNoRemote = "-no-remote"
    If $bNewWin Then $sNewWin = "-new-window"
    $sURL = '"' & $sURL & '"'
    If $iTimeOut < 2000 Then $iTimeOut = 2000
    
    Local $sHKLM = 'HKEY_LOCAL_MACHINE\SOFTWARE\'
       If @OSArch <> 'X86' Then $sHKLM &= 'Wow6432Node\'
       $sHKLM &= 'Mozilla\Mozilla Firefox'
    -------------------------------------------------------------------------
       Local $sFFExe = RegRead($sHKLM & "\" & RegRead($sHKLM, "CurrentVersion") & "\Main", "PathToExe")
       If @error Then
       SetError(__FFError($sFuncName, $_FF_ERROR_GeneralError, "Error reading registry entry for FireFox." & @CRLF & _
        $sHKLM&"\*CurrentVersion*\Main\PathToExe" & @CRLF & _
        "Error from RegRead: " & @error))
    -----------------------------------------------------------------------------
        Return 0
       EndIf

I use firefox portable . So  it show err "Error reading registry entry for FireFox". What do I need to do to resolve it??

I see the problem in ff.au3 

Func __FFStartProcess($sURL = "about:blank", $bNewWin = False, $sProfile = "default", $bNoRemote = False, $bHide = False, $iPort = 4242, $iTimeOut = 30000)
    Local Const $sFuncName = "__FFStartProcess"
        Local $PID = -1
    Local $sNoRemote = "", $sNewWin
    Local $sProcName = $_FF_PROC_NAME
        If $sProfile = "default" Then
        $sProfile = ''
    Else
        $sProfile = ' -P "' & $sProfile & '"'
    EndIf
    If $bNoRemote Then $sNoRemote = "-no-remote"
    If $bNewWin Then $sNewWin = "-new-window"
    $sURL = '"' & $sURL & '"'
    If $iTimeOut < 2000 Then $iTimeOut = 2000
    
    Local $sHKLM = 'HKEY_LOCAL_MACHINE\SOFTWARE\'
       If @OSArch <> 'X86' Then $sHKLM &= 'Wow6432Node\'
       $sHKLM &= 'Mozilla\Mozilla Firefox'
    -------------------------------------------------------------------------
       Local $sFFExe = RegRead($sHKLM & "\" & RegRead($sHKLM, "CurrentVersion") & "\Main", "PathToExe")
       If @error Then
       SetError(__FFError($sFuncName, $_FF_ERROR_GeneralError, "Error reading registry entry for FireFox." & @CRLF & _
        $sHKLM&"\*CurrentVersion*\Main\PathToExe" & @CRLF & _
        "Error from RegRead: " & @error))
    -----------------------------------------------------------------------------
        Return 0
       EndIf

I use firefox portable . So  it show err "Error reading registry entry for FireFox". What do I need to do to resolve it??

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...