scriptkitty Posted May 17, 2005 Posted May 17, 2005 I usually use the PixelChecksum way. I use the coords of the Stopsign. For all the sites I have used AutoIt, the sign changes to Red when loading, and greys back out when done loading. I just have autoit store a 5x5 checksum of the greyed out sign, then once I set a new page, I check to see if it changes back. Opt("PixelCoordMode", 0) ;1=absolute, 0=relative, 2=client Opt("WinTitleMatchMode", 4) ;1=start, 2=subStr, 3=exact, 4=advanced winactivate("classname=MozillaWindowClass") sleep(1000) $test1=PixelChecksum(136,63,138,68) while 1 $test2=PixelChecksum(136,63,138,68) if $test2=$test1 then tooltip("Done",0,0) Else ToolTip("loading",0,0) EndIf sleep(10) WEnd Just a little example. There are a lot of things wrong with it: 1) your browser has to be active. 2) your browser window must be visable. 3) by itself it doesn't tell you if it loaded the correct page. 4) not everyone has the same browser setup in firefox. AutoIt3, the MACGYVER Pocket Knife for computers.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now