Jump to content

Internet Explorer ?


Recommended Posts

How to determine a window with Internet Explorer or Notepad or Flash get?

How to determine when in window Internet Explorer there is a mistake, - for example:

" the server is not found " - " it is impossible to display page " or another?

Whether how to supervise it is connected Internet whether or not?

Thanks.

Link to comment
Share on other sites

here is a bit of code to get you started:

$ObjIE=ObjCreate("InternetExplorer.Application")
With $ObjIE
  .Visible = True
  .Navigate("http://www.autoitscript.com")

  while .ReadyState <> 4
    Sleep(50)
  wend

while 1
$body=$ObjIE.document.body.innerhtml
    tooltip("Monitor" & @crlf &stringleft($body,200),0,0)
WEnd
EndWith

When you stop IE, the script will crash and stop, I only show the first few lines of the page, but click around and you will see that the tooltip changes.

If you want to see only the text on the page for words:

$ObjIE=ObjCreate("InternetExplorer.Application")
With $ObjIE
  .Visible = True
  .Navigate("http://www.autoitscript.com")

  while .ReadyState <> 4
    Sleep(50)
  wend

while 1
$body=$ObjIE.document.body.outertext
    tooltip("Monitor" & @crlf &stringleft($body,200),0,0)
WEnd
EndWith

Now just build a UDF to check for what ever you are looking for...

AutoIt3, the MACGYVER Pocket Knife for computers.

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