Orao 0 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 Share this post Link to post Share on other sites
Orao 0 Posted February 28, 2014 Anybody? Is it not possible to read text from a tab in background? Share this post Link to post Share on other sites
FireFox 260 Posted February 28, 2014 Change to the tab you want to control : _FFTabSetSelected OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDFMy Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme makerMy Examples : Capture tool | IP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewerMy Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control Share this post Link to post Share on other sites
Orao 0 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 Share this post Link to post Share on other sites
Blue_Drache 260 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 Share this post Link to post Share on other sites
Stilgar 13 Posted February 28, 2014 $iTabIndex = 3 ; the index of your tab $sTextContent = _FFCmd("gBrowser.getBrowserAtIndex(" & $iTabIndex & ").contentDocument.body.textContent", 3000) jEdit4AutoIt PlanMaker_UDF Share this post Link to post Share on other sites