Jump to content

Error on small script


Recommended Posts

Hi there!

I have problem with this script:

#Include <FF.au3>
#Include <Misc.au3>
$Search="CLICK"
$i=1
If  _FFConnect(Default, Default, 3000) Then
    _FFOpenURL("<here is an url to a site>")
While _FFIsConnected()
MouseMove ( 200, 150)
MouseMove ( 200, 650)
If Mod( $i, 100) = 0 Then
    Mouseclick ("left", 830, 120)
    sleep(3000)
    EndIf
If Mod( $i, 60) = 0 Then
            MouseClick ( "left", 500, 470)
        MouseClick ( "left", 500, 395)
        MouseClick ( "left", 490, 55)
        MouseClick ( "left", 864, 20)
    EndIf
    If _FFSearch($Search) Then
        
        MouseClick ( "left", 500, 470)
        MouseClick ( "left", 500, 395)
        MouseClick ( "left", 490, 55)
        MouseClick ( "left", 864, 20)
        MouseMove ( 200, 150)
        MouseMove ( 200, 650)
        sleep (3000)
        EndIf
    $i=$i+1
        If _IsPressed("60") Then
            Exit
            EndIf
WEnd
EndIf
    Exit

First I want to say that I have the latest version Mozrepl,mozilla firefox and library for using firefox in autoit.

So when I start the program after a couple of minutes I reaceive this error:

Posted Image

I`ll apriciate if someone tells me why I receive this socket error and how can I fix it? ;)

Thank you in advance! :)

Edited by Phasebook
Link to comment
Share on other sites

Hello Phasebook

See all replies in

I've not tried the 'latest' versions, still using FireFox 3.6, waiting for someone else to say that v4 or 5 work with Mozrepl and FF.au3. If you get it working please post exact list of the versions you are using.

RichardL

Link to comment
Share on other sites

Hi :)

Welcome to the forums ;)

Last I checked, FF.au3 and MozRepl does not work with the latest Firefox ;)

Maybe you could downgrade to Firefox 3 or automate IE instead.

Hope this helps,

-smartee

Link to comment
Share on other sites

  • 3 weeks later...

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