Sign in to follow this  
Followers 0
zasxes

Winwaitactive("classname=internet Explorer_server2

5 posts in this topic

#1 ·  Posted (edited)

Opt("WinTitleMatchMode",4)

Run ('explorer.exe ' & "http://www.google.com")

WinWaitActive("classname=Internet Explorer_Server2")

MsgBox(0, "Good", "Got Here.")

exit

Edited by zasxes

Share this post


Link to post
Share on other sites



Thats the Idea, I want to know that the page loaded based on its class. Some pages I go to have different classes

Share this post


Link to post
Share on other sites

Personally I use Mozilla Firefox.

http://www.mozilla.org/products/firefox/

The nice part is that once the page is loaded, the stop loading the page button greys out. Thus you can use a simple pixel search to know when the page is loaded.

AutoItSetOption("PixelCoordMode", 0)
AutoItSetOption("TrayIconDebug", 1)
AutoItSetOption("WinTitleMatchMode", 2) 

While winexists("Mozilla Firefox")
    WinWaitActive("Mozilla Firefox")
    If PixelGetColor ( 118,68 ) =13817043 Then
  ToolTip ( "Page Loaded" ,0,0 )
    Else
  ToolTip("")
    EndIf
Wend

it has lots of other nice features, like no popups, tab browsing, control of java apps, and best of all FREE. :whistle:


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

Thats the Idea, I want to know that the page loaded based on its class.  Some pages I go to have different classes

I *think* that WinWaitActive can only be used with the class of the entire window instead of part of the window.

There are some other posts about waiting for webpages to finish loading. But Mozilla/Firefox is better than IE :whistle:


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

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  
Followers 0