Jump to content

Free Cookies!


overlord7
 Share

Recommended Posts

What is the best way for autoit to read text that is within the body of a window? An example would be attempting to read incoming instant messages or searching a web page for a regularly updated string.

sorry- no free cookies

For the web page thing it's easy,

#include <string.au3>
#Include <IE.au3>
$oIE = _IECreate("www.google.com")
$html = _IEGetBodyHtml($oIE)
; Or
$test = _IEGetBodyTest($oIE)

$news = _StringBetween($text, "something", "something")
; Or
$news = _StringBetween($html, "something", "something")
MsgBox(0, "", $news)

For the other thing,

like msn, i'm not really sure

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...