Jump to content
Sign in to follow this  
Orao

Read text from Firefox doesnt work if german or croatian characters?

Recommended Posts

Orao

I am trying to read text from firefox using the FF.au3 script.

But foreign letters are not displayes correctly; letters like "ö", "ä", "č", "ć".

What am i doing wrong?

Here is an example of the problem:

#include <FF.au3>


_FFStart("www.wetter.de","", 2)

$text = _FFReadtext()


MsgBox(4096,"",$text)

Here is the result i get:

post-64065-0-05793500-1393441658_thumb.p

What am i doing wrong?

Thank you

Edited by Orao

Share this post


Link to post
Share on other sites
FireFox

Hi,

No this is not your fault, the encoding is not correct.

Try this :

MsgBox(0, "", BinaryToString(StringToBinary($text, 1), 4))

Br, FireFox


 

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_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My 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

Yes, thanks i managed it with BinaryToStrung().

Is it possible tor read the text of a Firefox  Tab that is currently in background.

I would like to be able to work on other tabs, while the script reads text on a background tab, but  if i use:

_FFReadtext()

This function reads text but only on the current active tab, so if i browse through the tabs it always just reads text on the tab that i currently use.

 

Any solution?

Thank you

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.