Jump to content
Sign in to follow this  

Comparing two bitmap images

Recommended Posts



I wanted to have a checkpoint where it will compare two images and return true or false.

1. My application shows a result summary so it will take printscreen of that result data summary.

2. It will save that image as bitmap or jpeg

3. I already had an image of same result data summary (which will act as template for comparison)

4. Autoit will compare these two images.

5. If even a slight change is there between those two images then it should fail otherwise pass.

In Rational Robot, there is a inbuilt checkpoint function provided with which you can compare two images and make it as your checkpoint. so i was also thinking that in AutoIt there may be a way through which we can add checkpoint like this.

One more question i want to ask is:

I want to call an vbscript through autoit script, how i can do it?

Share this post

Link to post
Share on other sites

You can compare the files just red the whole file in binary mode and compare the $binary1 to $binary2.

I do that internally in the AutoIt nonreg tests checking. :)

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.