Jump to content

Scanning images and assigning it as a variable/object


Recommended Posts

Hello guys,

I am new to autoit and I am not sure if it can help me with the task I need. I have set a picture to make it easier for me to explain.

post-21985-1175088175_thumb.jpg

Base on the image above, there are 3 objects A, B and C.

1) Is it possible for me to capture the 3 images and assign them to a variable/object for each one of them? If it can be done, can you please write a sample code for it.

2) Second, if they can be assign as an object, can you do a comparison for each of them?

I am not asking for an entire script, maybe some pseudo codes will help me since I am new to images/pics/objects.

Link to comment
Share on other sites

OK, find out where on the screen A, B, C appear and notes the coordinates of the top, left, bottom, right of each one

When they appear, do a pixelchecksum of the area and store that. Now you know what to look for.

Create a loop and poll the areas (do a pixel checksum every once in a while) until they match with the ones you have stored.

----[ SandyD ]---
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...