Orao Posted February 27, 2014 Share Posted February 27, 2014 (edited) I am trying to read text from Firefox with ff.au3, but i want it to read text from a specified background tab, while I am working/browsing through other tabs. RIght now, its not possible because with command _FFReadtext(), it reads just text from the currently active tab. Here is an example what i am trying to do, #include <FF.au3> _FFStart("http://www.wetter.de/","", 2) $lookfor= "Der Wettertrend vom 26.02.2014" do sleep(2000) $text = _FFReadtext() $result=BinaryToString($text, "4") Until StringInStr($result, $lookfor) > 1 MsgBox(4096, "'" & $lookfor & "' found.", "'" & $lookfor & "' found.",2) But as I said, the _FFReadtext() command will just continue reading the text from the currently opened window/tab, but I want that it keeps on reading the Tab/WIndow that i specified, no mater which Window/tab i am currently using/browsing . Thank you for your help Edited February 27, 2014 by Orao Link to comment Share on other sites More sharing options...
Orao Posted February 28, 2014 Author Share Posted February 28, 2014 Anybody? Is it not possible to read text from a tab in background? Link to comment Share on other sites More sharing options...
FireFox Posted February 28, 2014 Share Posted February 28, 2014 Change to the tab you want to control : _FFTabSetSelected Link to comment Share on other sites More sharing options...
Orao Posted February 28, 2014 Author Share Posted February 28, 2014 Change to the tab you want to control : _FFTabSetSelected I tried your suggestion, but this function will Activate the Tab and bring it to the front. I want to be able to browse on other tabs, while the script executes on a Tab which i specified (the Tab is in Background). How could i do this? Thanks Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 28, 2014 Share Posted February 28, 2014 What website are you trying to access? That may be causing the difference. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Stilgar Posted February 28, 2014 Share Posted February 28, 2014 $iTabIndex = 3 ; the index of your tab $sTextContent = _FFCmd("gBrowser.getBrowserAtIndex(" & $iTabIndex & ").contentDocument.body.textContent", 3000) jEdit4AutoIt PlanMaker_UDF 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