Jump to content

Conent of websites


Recommended Posts

Hi, I have once again a problem!

I know, that I can read the body of a website with _IEBodyReadText.

Know I have a lot of words and phrases and so on.

How can I filter this, that I only have a special word of a text or something like this.

For example.

$lala = _IEBodyReadtext($o_IE)
MsgBox (0,"",$lala)

Then you have have a lot of informations like. If i read the body of www.hotmail.com then i get this:

Bei Hotmail anmeldenHilfe

Geben Sie Ihre E-Mail-Adresse im folgenden Format ein: IhrName@beispiel.com. Benötigen Sie Hilfe bei der Anmeldung?

E-Mail-Adresse:

 Diese Informationen sind erforderlich.

Kennwort:

Kennwort vergessen?

Meine E-Mail-Adresse und mein Kennwort speichern

Meine E-Mail-Adresse speichern

Immer nach meiner E-Mail-Adresse und nach meinem Kennwort fragen

Anmelden mit erhöhter Sicherheit

Windows Live ID

Kompatibel mit Windows Live-, MSN- und Microsoft Passport-Sites

Kontoverwaltung |  Datenschutzbestimmungen |  Nutzungsbedingungen

© 2006 Microsoft Corporation. Alle Rechte vorbehalten.

I only want to know, if in the text is the word "Kennwort".

My Code is now:

#include <ie.au3>
$o_IE = _IECreate ()
_IENavigate ($o_IE, "http://hotmail.com")
$lala = _IEBodyReadtext($o_IE)

Now I don't know how to describe to the program.

In my own words: If there is a word in $lala like "kennwort" then do something.

Can you translate this into autoit-language?

Thank you very much!!

Link to comment
Share on other sites

Hi, I have once again a problem!

I know, that I can read the body of a website with _IEBodyReadText.

Know I have a lot of words and phrases and so on.

How can I filter this, that I only have a special word of a text or something like this.

For example.

$lala = _IEBodyReadtext($o_IE)
MsgBox (0,"",$lala)

Then you have have a lot of informations like. If i read the body of www.hotmail.com then i get this:

Bei Hotmail anmeldenHilfe

Geben Sie Ihre E-Mail-Adresse im folgenden Format ein: IhrName@beispiel.com. Benötigen Sie Hilfe bei der Anmeldung?

E-Mail-Adresse:

 Diese Informationen sind erforderlich.

Kennwort:

Kennwort vergessen?

Meine E-Mail-Adresse und mein Kennwort speichern

Meine E-Mail-Adresse speichern

Immer nach meiner E-Mail-Adresse und nach meinem Kennwort fragen

Anmelden mit erhöhter Sicherheit

Windows Live ID

Kompatibel mit Windows Live-, MSN- und Microsoft Passport-Sites

Kontoverwaltung |  Datenschutzbestimmungen |  Nutzungsbedingungen

© 2006 Microsoft Corporation. Alle Rechte vorbehalten.

I only want to know, if in the text is the word "Kennwort".

My Code is now:

#include <ie.au3>
$o_IE = _IECreate ()
_IENavigate ($o_IE, "http://hotmail.com")
$lala = _IEBodyReadtext($o_IE)

Now I don't know how to describe to the program.

In my own words: If there is a word in $lala like "kennwort" then do something.

Can you translate this into autoit-language?

Thank you very much!!

Maybe...

If StringInStr($lala, "Kennwort") Then MsgBox(64, "Kennwort", "Found it!")

:D

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
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
 Share

  • Recently Browsing   0 members

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