Jump to content
Sign in to follow this  
danhtin2108

Controlling multiple firefox processes

Recommended Posts

danhtin2108

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

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.