For the first MLS I got a screen with a label "Photo" white font with a black background and the photo of the house below it.
For the second MSL I got a screen with the same URL where both the "Photo" label and the photo of a house were missing. In its place was a text message "Your search didn't return any results".
If that is the only possible error message you could check for it using the text command you tried earlier.
Or you can check for the "Photo" label not displaying.
Code: Select all
//PhotoLabel is the white on black column heading
Let>PhotoLabel=%SCRIPT_DIR%\PhotoLabel.bmp
FindImagePos>%PhotoLabel%,SCREEN,20,1,X,Y,NumFound
If>NumFound=1
//Add about 50 pixels to the Y coordinate to where the photo is
//MouseMove>X_0,Y_0+50 (bad syntax, thanks JRL)
MouseMove>X_0,{%Y_0%+50}
LClick
Else
//Put your error code here
//NumFound comments added in response to JRL's post.
//NumFound=-1 means syntax error
//NumFound=0 means no images found
//NumFound>0 means many images found - which one is good?
// usually the first one, but sometimes not.
//Perhaps read the screen text
//Or do a ScreenCapture
Endif