F__S

Socket Error

5 posts in this topic

Ein freundliches Hallo!

Hoffe, genug gelesen zu haben, um die ersten Anfängerfehler umgangen zu haben; komme aber leider trotzdem nicht weiter.

#include "FF.au3" ist gesetzt

mozrepl ist gestartet

Trotzdem erscheint folgende Fehlermeldung, die ich nicht interpretieren kann.

 

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\autoit\_firefox - Kopie.au3" /UserParams    
+>22:28:12 Starting AutoIt3Wrapper v.14.801.2025.0 SciTE v.3.4.4.0   Keyboard:00000407  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0407)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\Fabian\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Fabian\AppData\Local\AutoIt v3\SciTE
>Running AU3Check (3.3.12.0)  from:C:\Program Files (x86)\AutoIt3  input:C:\autoit\_firefox - Kopie.au3
+>22:28:12 AU3Check ended.rc:0
>Running:(3.3.12.0):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\autoit\_firefox - Kopie.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
__FFSend ==> Socket Error
_FFCmd ==> Error return value
__FFSend ==> Socket Error
_FFCmd ==> Error return value
__FFSend ==> Socket Error
__FFRecv:


__FFWaitForRepl ==> Error TCPSend / TCPRecv: TCPRecv :-1
__FFSend ==> Socket Error
_FFCmd ==> Error return value
+>22:28:18 AutoIt3.exe ended.rc:0
+>22:28:18 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 6.132

 

 

----------

Für jede Hilfe dankbar

Fabian

Share this post


Link to post
Share on other sites



Hi!

Could you try posting on English language?

I'm really very sorry, I can't resist...

Roses are red

Violets are blue

This forum is in English

You should be too o:)

1 person likes this

My stuff

Spoiler

My UDFs  _AuThread multithreading emulation for AutoIt · _ExtInputBox an inputbox with multiple inputs and more features · forceUTF8 fix strings encoding without knowing its original charset · JSONgen JSON generator · _TCPServer UDF multi-client and multi-task (run on background) event-based TCP server easy to do · _TCPClient_UDF multi-server and multi-task (runs on background) event-based TCP client easy to do · ParseURL and ParseStr functions ported from PHP · _CmdLine UDF easily parse command line parameters, keys or flags · AutoPHP Create documents (bills, incomes) from HTML by sending variables/arrays from AutoIt to PHP · (Un)Serialize Convert arrays and data into a storable string (PHP compatible) · RTTL Plays and exports to MP3 Nokia-format monophonic ringtones (for very old cellphones) · I18n library Simple and easy to use localization library · Scripting.Dictionary OOP and OOP-like approach · Buffer/stack limit arrays to N items by removing the last one once the limit is reached · NGBioAPI UDF to work with Nitgen fingerprint readers · Serial/Licensing system require license key based on unique machine ID from your users · HTTP a simple WinHTTP library that allows GET, POST and file uploads · Thread true AutoIt threads (under-dev) · RC4 RC4 encryption compatible with PHP and JS Classes _WKHtmlToX uses wkhtmlto* to convert HTML files and webpages into PDF or images (jpg, bmp, gif, png...) Snippets _Word_DocFindReplaceByLongText replace strings using Word UDF with strings longer than 255 characters (MSWord limit) rangeparser parser for printing-like pages interval (e.g.: "1,2,3-5") EnvParser parse strings/paths with environment variables and get full path Random stuff Super Mario beep sound your ears will hurt

 

Share this post


Link to post
Share on other sites

... sorry!

I just made my first steps with autoit, but I tried to find some hints for my problem, so I'm sure that
#include "FF.au3" is included and
mozrepl is startet

But I can't interpret the postet errors.

Share this post


Link to post
Share on other sites

Could you post your code, as well as the link where you got FF.au3 from?


My stuff

Spoiler

My UDFs  _AuThread multithreading emulation for AutoIt · _ExtInputBox an inputbox with multiple inputs and more features · forceUTF8 fix strings encoding without knowing its original charset · JSONgen JSON generator · _TCPServer UDF multi-client and multi-task (run on background) event-based TCP server easy to do · _TCPClient_UDF multi-server and multi-task (runs on background) event-based TCP client easy to do · ParseURL and ParseStr functions ported from PHP · _CmdLine UDF easily parse command line parameters, keys or flags · AutoPHP Create documents (bills, incomes) from HTML by sending variables/arrays from AutoIt to PHP · (Un)Serialize Convert arrays and data into a storable string (PHP compatible) · RTTL Plays and exports to MP3 Nokia-format monophonic ringtones (for very old cellphones) · I18n library Simple and easy to use localization library · Scripting.Dictionary OOP and OOP-like approach · Buffer/stack limit arrays to N items by removing the last one once the limit is reached · NGBioAPI UDF to work with Nitgen fingerprint readers · Serial/Licensing system require license key based on unique machine ID from your users · HTTP a simple WinHTTP library that allows GET, POST and file uploads · Thread true AutoIt threads (under-dev) · RC4 RC4 encryption compatible with PHP and JS Classes _WKHtmlToX uses wkhtmlto* to convert HTML files and webpages into PDF or images (jpg, bmp, gif, png...) Snippets _Word_DocFindReplaceByLongText replace strings using Word UDF with strings longer than 255 characters (MSWord limit) rangeparser parser for printing-like pages interval (e.g.: "1,2,3-5") EnvParser parse strings/paths with environment variables and get full path Random stuff Super Mario beep sound your ears will hurt

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

F_S, I too use FF.au3 and MozRepl... Just a guess here, but if you have MozRepl installed in your Firefox browser, it has its own start, stop and "Activate at startup" found in the tools menu of Firefox. 

If MozRepl isn't running, the commands won't be executed since there is no connection.

I see where you state that MozRepl is running...You can still use the following code if you would like.

This will force Firefox to open. If you have MozRepl set to "Activate at startup", then you can debug from there.

If FileExists(@ProgramFilesDir & "/Mozilla Firefox/firefox.exe") Then
        MsgBox($MB_ICONINFORMATION, "Internet Browser", "Connecting to Firefox ...", 2)

        _FFStart($myUrl, "default", 2);Force FF to open, if process not already open
        MsgBox($MB_ICONINFORMATION, "Looking for tab", "Switching to the tab ...", 2)

        If ProcessExists("firefox.exe") Then
            _FFTabSetSelected("Text here that is in the tab", "label");The text must match in the tab...
        Else
            MsgBox($MB_ICONINFORMATION, "Firefox", "Opening New Firefox Session ...", 2)
            _FFStart($myUrl, "default", 2);Force FF to open, if process not already open
        EndIf

    ElseIf Not FileExists(@ProgramFilesDir & "//Mozilla Firefox/firefox.exe") Then
        MsgBox($MB_ICONINFORMATION, "Internet Browser", " FireFox can not be found!" & @CRLF & "Closing ...", 5)
        CLOSEButton()
    EndIf

Depending on where FF.au3 is located, you may have to change

#include "FF.au3" to

#include <FF.au3>

FF.au3 is being included since it is throwing the error messages.

__FFWaitForRepl ==> Error TCPSend / TCPRecv: TCPRecv :-1
__FFSend ==> Socket Error
_FFCmd ==> Error return value

FF is waiting for MozRepl, so it can't make the connection. I think this is key.

I'll keep digging for the answer. We do need your code snippet though. I think the connection to MozRepl is timing out and FF.au3 is setting the errors. Still just a guess without seeing your code.

Hope this helps...

Edited by Sagacity
Re-read the question

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