How do i use image search using Auotit?

06/11/2013 07:13 Jσny#1
Basically what i wanna do is this video.


Thanks.:handsdown::handsdown::handsdown:

I wanna find any image on my screen no matter where it is and click it.The link given there is now working. I use windows 7 64 bit.

any help please?

Thanks for ya help i made it myself. Was nice. Soz if i asked something wrong. I don't understand German there were similar threads. I am new here.
06/14/2013 23:44 golle12#2
Search in google Imagesearch Autoit or anything else
06/14/2013 23:58 EinfachSö#3
do you have the ImageSearch.au3? And the ImageSearchDLL.dll? If no then get them.

The rest ist easy.
You need to set a variable.

PHP Code:
#include<ImageSearch.au3> //includes the .au3

$x1=//the coordinates from the found picture
$y1=//we set the variables as Numbers

$variable=_ImageSearch("Picname"1$x1$y10)
If 
$variable=1 then
  MouseClick
("left"$x1$y1//clicks on the found pic
Else
  
blabla
Endif

//at "Picname" need to be the pic that you search for
//the number 1 after that means that he klicks in the middle of the pic
//for 0 its the upper left corner?
// $x1 adn $y1 are the coordinates of the found pic
// the 0 at the end is for the pixels he can differ from the mid/corner 
and if you wanna search in an area use this:

PHP Code:
#include<ImageSearch.au3>

$x1=0
$y1
=0

$var
=_ImageSearchArea("picname"1lurd$x1$y10)

//l= left side of the area
//u=upper side of the area
//r=right site of the area
//d=down side of the area