Jump to content
Sign in to follow this  
meorno1

_ImageSearch

Recommended Posts

meorno1

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 this post


Link to post
Share on other sites
jaberwacky

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 this post


Link to post
Share on other sites
meorno1

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 this post


Link to post
Share on other sites
jaberwacky

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 this post


Link to post
Share on other sites
meorno1

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 this post


Link to post
Share on other sites
meorno1

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 this post


Link to post
Share on other sites
meorno1

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 this post


Link to post
Share on other sites
JohnOne

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:

And please dont sent me any more messages, a was already trying to help you.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
meorno1

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:

And please dont sent me any more messages, a was already trying to help you.

thanks alot its working now .

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

thanks again and sorry for pm :mellow:

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.