Searching For an Image

I'm relatively new to c++ and am trying to make/find a function that will allow me to search a window/the screen for an image in a file. I can do this using something like auto hotkey. This won't do however I need to be able to do it with c++ any ideas?
Sorry, I'm not following. Can you give more details?
I would like to have create some code that will allow me to take a picture that I have and match that picture against images on the screen to see if they are the same. Then I would like to get the screens coordinates for where the match is.

Last edited on
Is this still not clear?
Look, this isn't just something that you can achieve by spitting out 10 lines of code using C++.

Set yourself some realistic goals, reach them - rinse and repeat until you know enough to be able to do what you're asking.
That requires graphic analysis and a whole bunch of very advanced coding. Unless you have access to the location in memory where the original picture is. If you do (which is already not an easy task), then all you need to do is check to see if the location in memory of the picture you have is the same.

However, this only works if both pictures are sprites of the same image file. If one comes from \A\img.jpg and the other comes from \B\img.jpg, even if both images contain the same information (the user copied it from one folder to the other), this method won't work.

Short answer: if you're new to c++, you'd best start with something quite a bit more basic. Most users take a long time to stop using the console to display results, nevermind pictures...
We had this a few days ago:
http://www.cplusplus.com/forum/windows/24084/

This is no easy task with C++, while it is very simple with AutoIt.
Even beginners should have no problems with it.
I've used AutoIt and programs like it unfortunately they won't work in this case thanks for the help though.
Topic archived. No new replies allowed.