lokatylokacz Posted November 19, 2018 Posted November 19, 2018 Hey! I'm really new in world of AutoIT and here comes my question. Is there any way to make script recognise pictures A1 and A2 as the same? A1: A2: "Zoom": As you can probabaly see on last screen the background pixels are similar but not the same and function _ImageSearch will result 0 casue they are not the same.I thought that's not a problem cause I will change $tolerance value and it will be ok, but it's not. ($findImage,$resultPosition,ByRef $x, ByRef $y,$tolerance, $HBMP=0) ; Description: Find the position of an image on the desktop ; Syntax: _ImageSearchArea, _ImageSearch ; Parameter(s): ; $findImage - the image to locate on the desktop ; $tolerance - 0 for no tolerance (0-255). Needed when colors of ; image differ from desktop. e.g GIF ; $resultPosition - Set where the returned x,y location of the image is. ; 1 for centre of image, 0 for top left of image ; $x $y - Return the x and y location of the image ; ; Return Value(s): On Success - Returns 1 ; On Failure - Returns 0 Any idea how to deal with it, all kinds of help will be much appreciated Kings regards, LoK
Developers Jos Posted November 19, 2018 Developers Posted November 19, 2018 @lokatylokacz, I see you did not read those rules, to which I linked, very carefully - you missed the part that says: "Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above" Do NOT start another thread on this - our patience has limits. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts