Jump to content

Controlling multiple firefox processes


Recommended Posts

I've got two test scripts which both do the same thing, just open a URL in a loop. I'm using ff.au3 _FFStart command and specifying a unique profile name and -no -remote flag.

Which ever script I start first works fine. The second script opens a FF window and MsgBoxes but then does nothing else.

Any pointers are greatly appreciated.

thanks,

mike

#include <FF.au3>

_FFStart("about:blank","Profile1", 9) 
;_FFStart("about:blank","Profile2", 9)  ####THE ONLY DIFFERENCE BETWEEN SCRIPTS IS WHICH PROFILE

MsgBox(0,"",$_FF_GLOBAL_SOCKET )

If _FFIsConnected() Then

    $num_loops = 0 
    Do

        _FFOpenURL("www.google.com", True)

        Sleep(2000)
        _FFTabClose("all", "keyword")
        ;$num_loops = $num_loops + 1

    Until $num_loops = 5

_FFQuit()

EndIf
Link to comment
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
 Share

  • Recently Browsing   0 members

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