# _ImageSearch

## Recommended Posts

hi

am trying to find bmp picture in screen using image search function

its working find with some pictures but other not even i did same for all

$result = _ImageSearch("x2.bmp",1,$x1,$y1,0) if$result=1 Then MouseClick( "left", $x1,$y1, 1, 0)

is they way to make function not look for exact picture maybe some pix changed or something how can i do that

or is there any other function like this but better ? to find picture in screen !

thanks

##### Share on other sites

Look into PIxelCheckSum.

Take a checksum of a region, store the checksum for future reference. Take another snapshot of the region, compare the two checksums? Is that what you meant?

##### Share on other sites

Look into PIxelCheckSum.

Take a checksum of a region, store the checksum for future reference. Take another snapshot of the region, compare the two checksums? Is that what you meant?

is this for color change in picture ? coz am not looking for this i just want something effective to find bmp pictures in screen .

thanks for trying to help

##### Share on other sites

I've used before, works fine. Author = junkew

Edited by JohnOne

Monkey's are, like, natures humans.

##### Share on other sites

Looks like you may have to roll your own, but, the AutoIt based version wouldn't be as fast. I assume that the dll in the Image Search Library is c/c++. Unless someone else knows of another similar UDF.

Yeah, what he said. ^^^^^^

Edited by LaCastiglione

##### Share on other sites

I've used before, works fine. Author = junkew

thx am trying to run this udf but not working . if you have simple sample how to find 1 bmp in screen using this function will be great

##### Share on other sites

Looks like you may have to roll your own, but, the AutoIt based version wouldn't be as fast. I assume that the dll in the Image Search Library is c/c++. Unless someone else knows of another similar UDF.

Yeah, what he said. ^^^^^^

hi ,

i dont care if it take more sec's to find the picture its only 1 picture . so it does not matter time .

but i want image-search udf not to look for exact picture if partly find the picture click on it can i do that

##### Share on other sites

thx am trying to run this udf but not working . if you have simple sample how to find 1 bmp in screen using this function will be great

Show how you are doing it.

Monkey's are, like, natures humans.

##### Share on other sites

Show how you are doing it.

i run sample from the link you gave me but am getting this error

1.au3 (51) : ==> Subscript used with non-Array variable.:

_ScreenCapture_Capture($Bitmap3Filename, ($aWinPos[0]+$pos[0]) + ($aWinPos[2] - $aWinCSize[0])-3, ($awinpos[1]+$pos[1])+ ($aWinPos[3]-$aWinCSize[1])-3,$aWinPos[0]+$pos[0]+$pos[2]+3, ($awinpos[1]+$pos[1])+ ($aWinPos[3]-$aWinCSize[1])+$pos[3]-3,false) _ScreenCapture_Capture($Bitmap3Filename, ($aWinPos[0]+$pos^ ERROR

>Exit code: 1 Time: 0.527

##### Share on other sites

Crop a picture of an Icon off your desktop or something and call it like this.

$MyScreen = "SCREEN"$MyPic = "path\to\cropped\pic.bmp"
$aresult = _FindBMP($MyScreen, $MyPic,$c24RGBPartialMatch) ; Make sure both bmps are 24 bit mind

EDIT:

Edited by JohnOne

Monkey's are, like, natures humans.

##### Share on other sites

Crop a picture of an Icon off your desktop or something and call it like this.

$MyScreen = "SCREEN"$MyPic = "path\to\cropped\pic.bmp"
$aresult = _FindBMP($MyScreen, $MyPic,$c24RGBPartialMatch) ; Make sure both bmps are 24 bit mind

EDIT:

thanks alot its working now .

i had problem with ScreenCaptureFixed.au3 i didnt have it .

thanks again and sorry for pm

##### Share on other sites

No problem

Good luck

Monkey's are, like, natures humans.

## Create an account

Register a new account