Jump to content

_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

Link to comment
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?

Link to comment
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

Link to comment
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
Link to comment
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

Link to comment
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

Link to comment
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:

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.

Link to comment
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:

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:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...