[C++][Help]Image Search?

07/28/2014 14:27 Andrea1234567890#1
Hi everyone,

I was trying to search a function that can "read" a picture and find it on the desktop.

If I can find this picture on my desktop, do something like message "Picture found!".

It's a cool func to make nice bots or something else (like a D3D utility on some games like League of Legends without touching dinamic memory).

On AutoIt exists already but I couldn't find it for C++, searching around I saw that on AHK exist that func, If I read well.

Can someone help me? :/ thank you in advance.
08/01/2014 09:01 cookie69#2
There is a DLL wrapper made by someone to be used by autoit: search in google for "ImageSearchDLL".
Once you have downloaded it (it comes with a DLL and an AU3 file) try to make it work with autoit (I advice you to use bmp pictures for testing), just call Autoit script inside your C++ project ;) You can find tutorials on internet to how call autoit from visual studio (easy)

Edited: Or just call your DLL from c++ directly, but I didn't test it so I dont know if it is working!

Good luck
08/01/2014 18:06 alpines#3
No, you don't need the wrapper in AutoIt. It's pretty useless this way. Just take the ImageSearchDLL.dll and import the functions you want to use. Call them and handle the result. That's better than compiling the AutoIt script with its wrapper.