Sign in to follow this  
Followers 0
lbw87

Search Firefox Tabs across multiple open windows

4 posts in this topic

Anyone know if it's possible to search open tabs of all open firefox windows?

I might be wrong but it seems that _FFTabExists only looks for an open tab in the window that is activated or the last activated. I can't seem to make my code search the windows open in the background, it only searches the last selected window.

If I have two windows open with 3 tabs in each, and activate the window that doesn't contain the tab you want to "_FFTabSetSelected" and try "_FFTabExists" it'll only consider the foreground window.

Anyone have any ideas?

Code attached is a real real dumbed down version of what I was trying to do. I was using other methods to try and search active windows and everything else but figured I'd ask first before I continue going down that road...

#include <FF.au3>
#include <FF_AutoLogin.au3>



if _FFConnect() then

Sleep(3000)

$windowsselect = _FFWindowSelect("Gmail: Email from Google","label")
$exists = _FFTabExists("Gmail: Email from Google")
$setselected = _FFTabSetSelected("Gmail: Email from Google","label")
If _FFConnect () Then
      _FF_AutoLogin("USER","PASS", "www.gmail.com")
    EndIf

EndIf

Share this post


Link to post
Share on other sites



Afaik, all of the _FF functions are sent to the currently selected window (the one you select via _FFWindowSelect). So to search all tabs in all windows, you'd likely need a nested loop.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

yeah i figured that'd be what i'd have to do

but even if i took the windowselect out and didn't select any FF windows at all...FFexists only searches in the last selected window?

Edited by lbw87

Share this post


Link to post
Share on other sites

yea it defaults to something if you haven't done a SelectWindow(). It's probably the active window... could be the first or most recent instance of Firefox you started.

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  
Followers 0