We are trying to automate a tool to compare 'problem' files against new releases to catch anything we broke in the new translation.
These are line drawings (so not a lot of pixels per screen). When I use CompareBitmaps, I get 99% match even when they are very different. I tried the HashLib but it doesn't seem to be working.
All of these show message of r2 regardless of the image that is used.
Code: Select all
//Put Hashlib.dll in script directory
Let>HashLib=%SCRIPT_DIR%\HashLib.dll
//Get SHA1 hash of a file
LibFunc>Hashlib,FileSHA1,r,c:\Image1.BMP,buf
Mid>r2,1,r,hash
MessageModal>Hash: %hash%
LibFunc>Hashlib,FileSHA1,r,C:\Image2.BMP,buf
Mid>r2,1,r,hash
MessageModal>Hash: %hash%
//Get MD5 hash of a file
LibFunc>Hashlib,FileMD5,r,c:\Image1.BMP,buf
Mid>r2,1,r,hash
MessageModal>Hash: %hash%
LibFunc>Hashlib,FileMD5,r,c:\Image2.BMP,buf
Mid>r2,1,r,hash
MessageModal>Hash: %hash%
Is there a better alternative?
Macro Scheduler V12.0.8
Windows 7 (x64)