Hi all,
Is there any other explanation for a return of -1 in CompareBitmaps?
I am taking a ScreenCapture of a small part of the screen using:
ScreenCapture>61,900,122,947,c:\check_test.bmp
I then debug a script that contains:
ScreenCapture>61,900,122,947,c:\test.bmp
CompareBitmaps>c:\test.bmp,c:\check_test.bmp
If>match>50,OK
...
and the debug window returns a
CHECK_TEST.BMP=-1
The help file states: "If the two files are not of the same dimension then result will be -1. " but looking at the file properties ->summary confirms that the files are identical (and a 400% zoom in Paint looks identical).
Is there any other situation that returns a -1 ?
Thanks for your help.
CompareBitmaps -1 question
Moderators: Dorian (MJT support), JRL
Add third param.
You forgot the last param.
-1 also returned for syntax errors.
CompareBitmaps>c:\test.bmp,c:\check_test.bmp ,match
Gale
-1 also returned for syntax errors.
CompareBitmaps>c:\test.bmp,c:\check_test.bmp ,match
Gale