meorno1 Posted August 18, 2011 Share Posted August 18, 2011 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 More sharing options...
jaberwacky Posted August 18, 2011 Share Posted August 18, 2011 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? Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
meorno1 Posted August 18, 2011 Author Share Posted August 18, 2011 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 More sharing options...
JohnOne Posted August 18, 2011 Share Posted August 18, 2011 (edited) I've used before, works fine. Author = junkew Edited August 18, 2011 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 More sharing options...
jaberwacky Posted August 18, 2011 Share Posted August 18, 2011 (edited) 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 August 18, 2011 by LaCastiglione Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
meorno1 Posted August 18, 2011 Author Share Posted August 18, 2011 I've used before, works fine. Author = junkewthx 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 Link to comment Share on other sites More sharing options...
meorno1 Posted August 18, 2011 Author Share Posted August 18, 2011 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 More sharing options...
JohnOne Posted August 18, 2011 Share Posted August 18, 2011 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 greatShow how you are doing it. 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 More sharing options...
meorno1 Posted August 18, 2011 Author Share Posted August 18, 2011 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 More sharing options...
JohnOne Posted August 18, 2011 Share Posted August 18, 2011 (edited) 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 August 18, 2011 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 More sharing options...
meorno1 Posted August 18, 2011 Author Share Posted August 18, 2011 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 Link to comment Share on other sites More sharing options...
JohnOne Posted August 18, 2011 Share Posted August 18, 2011 No problem Good luck 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now