Jump to content

Recommended Posts

Posted (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 by Orao
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...