lbw87 Posted April 15, 2010 Share Posted April 15, 2010 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 Link to comment Share on other sites More sharing options...
evilertoaster Posted April 15, 2010 Share Posted April 15, 2010 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. Link to comment Share on other sites More sharing options...
lbw87 Posted April 16, 2010 Author Share Posted April 16, 2010 (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 April 16, 2010 by lbw87 Link to comment Share on other sites More sharing options...
evilertoaster Posted April 16, 2010 Share Posted April 16, 2010 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now